Fixed global state counters not being initialized

This commit is contained in:
Blixibon 2022-08-28 13:06:55 -05:00
parent deacb7df61
commit 3c7d0f86b3

View File

@ -131,6 +131,9 @@ public:
entity.name = m_nameList.AddString( pGlobalname );
entity.levelName = m_nameList.AddString( pMapName );
entity.state = state;
#ifdef MAPBASE
entity.counter = 0;
#endif
int index = GetIndex( m_nameList.String( entity.name ) );
if ( index >= 0 )