From 3c7d0f86b390d1d969f3d08299d4d114539e7e66 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Sun, 28 Aug 2022 13:06:55 -0500 Subject: [PATCH] Fixed global state counters not being initialized --- sp/src/game/server/globalstate.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sp/src/game/server/globalstate.cpp b/sp/src/game/server/globalstate.cpp index 7ade7762..720e8906 100644 --- a/sp/src/game/server/globalstate.cpp +++ b/sp/src/game/server/globalstate.cpp @@ -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 )