Skip to content

Commit 759bbff

Browse files
committed
Fix typo indicies -> indices
1 parent 2773154 commit 759bbff

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

datatables.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ func (p *Parser) bindGrenadeProjectiles(event st.EntityCreatedEvent) {
321321
proj.EntityID = event.Entity.ID
322322

323323
event.Entity.FindProperty("m_nModelIndex").RegisterPropertyUpdateHandler(func(val st.PropValue) {
324-
proj.Weapon = p.grenadeModelIndicies[val.IntVal]
324+
proj.Weapon = p.grenadeModelIndices[val.IntVal]
325325
})
326326

327327
// @micvbang: not quite sure what the difference between Thrower and Owner is.

model_precache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func (p *Parser) processModelPreCacheUpdate() {
2323
for i, name := range p.modelPreCache {
2424
for _, nade := range modelPrecacheNameToEq {
2525
if strings.Contains(name, nade.name) {
26-
p.grenadeModelIndicies[i] = nade.eq
26+
p.grenadeModelIndices[i] = nade.eq
2727
}
2828
}
2929
}

parser.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type Parser struct {
4949
instanceBaselines map[int][]byte // Maps server-class IDs to instance baselines
5050
preprocessedBaselines map[int]map[int]st.PropValue // Maps server-class IDs to preprocessed baselines (preprocessed-baseline = property-index to value map)
5151
gameEventDescs map[int32]*msg.CSVCMsg_GameEventListDescriptorT // Maps game-event IDs to descriptors
52-
grenadeModelIndicies map[int]common.EquipmentElement // Used to map model indicies to grenades (used for grenade projectiles)
52+
grenadeModelIndices map[int]common.EquipmentElement // Used to map model indices to grenades (used for grenade projectiles)
5353
stringTables []*msg.CSVCMsg_CreateStringTable // Contains all created sendtables, needed when updating them
5454
}
5555

@@ -213,7 +213,7 @@ func NewParserWithConfig(demostream io.Reader, config ParserConfig) *Parser {
213213
p.triggers = make(map[int]*boundingBoxInformation)
214214
p.cancelChan = make(chan struct{}, 1)
215215
p.gameState = newGameState()
216-
p.grenadeModelIndicies = make(map[int]common.EquipmentElement)
216+
p.grenadeModelIndices = make(map[int]common.EquipmentElement)
217217

218218
// Attach proto msg handlers
219219
p.msgDispatcher.RegisterHandler(p.handlePacketEntities)

0 commit comments

Comments
 (0)