Skip to content

Commit aa89e98

Browse files
committed
client: crash fix :(
1 parent aac0ae7 commit aa89e98

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cl_dll/vgui_parser.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,14 @@ const char *Localize( const char *szStr )
6464
if( szStr )
6565
{
6666
char *str = strdup( szStr );
67-
67+
char *p = str;
68+
6869
StripEndNewlineFromString( str );
6970

70-
if( *str == '#' )
71-
str++;
71+
if( *p == '#' )
72+
p++;
7273

73-
int i = hashed_cmds.Find( str );
74+
int i = hashed_cmds.Find( p );
7475

7576
free( str );
7677

0 commit comments

Comments
 (0)