mirror of
https://github.com/nzp-team/quakec.git
synced 2025-03-24 19:51:58 +00:00
Add a check that should have been there already
This commit is contained in:
parent
56f5cf2429
commit
0de83c84f4
1 changed files with 3 additions and 0 deletions
|
@ -1129,6 +1129,9 @@ noref void() CSQC_Parse_Event =
|
|||
break;
|
||||
case EVENT_REVIVECHANGE:
|
||||
float revivechange_player_index = readbyte() - 1; // playernum starts at one.
|
||||
if (revivechange_player_index < 0)
|
||||
return;
|
||||
|
||||
float state = readbyte();
|
||||
revive_icons[revivechange_player_index].state = state;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue