game(hl1): fix use after scope

This commit is contained in:
nillerusr
2022-08-23 17:33:12 +03:00
parent e11a21ea19
commit 2cb00530c7
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -994,7 +994,7 @@ int CNPC_Houndeye::SquadRecruit( int searchRadius, int maxMembers )
}
else
{
char szSquadName[64];
static char szSquadName[64];
Q_snprintf( szSquadName, sizeof( szSquadName ), "squad%d\n", s_iSquadIndex );
m_SquadName = MAKE_STRING( szSquadName );