Add a check that should have been there already

This commit is contained in:
ToasterPanic 2025-02-09 18:12:13 -05:00 committed by GitHub
parent 56f5cf2429
commit 0de83c84f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;