From: terencehill Date: Sun, 11 Nov 2018 18:15:21 +0000 (+0100) Subject: Fix #2156 (error message spam during automatic revival in freezetag) X-Git-Tag: xonotic-v0.8.5~1719 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cbf1fffeed28e947f0bc62790dc1d75df380941f;p=xonotic%2Fxonotic-data.pk3dir.git Fix #2156 (error message spam during automatic revival in freezetag) --- diff --git a/qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc b/qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc index 0b87c03bd..224fbcbfb 100644 --- a/qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc +++ b/qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc @@ -534,9 +534,10 @@ MUTATOR_HOOKFUNCTION(ft, PlayerPreThink, CBC_ORDER_FIRST) Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_FREEZETAG_REVIVED, player.netname, first.netname); } - IL_EACH(reviving_players, true, { - STAT(REVIVE_PROGRESS, it) = STAT(REVIVE_PROGRESS, player); - }); + if (reviving_players) + IL_EACH(reviving_players, true, { + STAT(REVIVE_PROGRESS, it) = STAT(REVIVE_PROGRESS, player); + }); } if (reviving_players)