Skip to content

Commit

Permalink
engine: server: fix possible message number inconsistency if server r…
Browse files Browse the repository at this point in the history
…equested it twice
  • Loading branch information
a1batross committed Dec 19, 2024
1 parent 3f1eed9 commit 68b2d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/server/sv_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -3512,7 +3512,7 @@ static int GAME_EXPORT pfnRegUserMsg( const char *pszName, int iSize )
{
// see if already registered
if( !Q_strcmp( svgame.msg[i].name, pszName ))
return svc_lastmsg + i; // offset
return svgame.msg[i].number;
}

if( i == MAX_USER_MESSAGES )
Expand Down

0 comments on commit 68b2d9f

Please sign in to comment.