From 0de83c84f45ac1100d8b1ef071fb59a8e31d3483 Mon Sep 17 00:00:00 2001 From: ToasterPanic <91223726+ToasterPanic@users.noreply.github.com> Date: Sun, 9 Feb 2025 18:12:13 -0500 Subject: [PATCH] Add a check that should have been there already --- source/client/main.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/client/main.qc b/source/client/main.qc index 403314b..09e3112 100644 --- a/source/client/main.qc +++ b/source/client/main.qc @@ -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;