Fix #2156 (error message spam during automatic revival in freezetag)
authorterencehill <piuntn@gmail.com>
Sun, 11 Nov 2018 18:15:21 +0000 (19:15 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 11 Nov 2018 18:15:21 +0000 (19:15 +0100)
qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc

index 0b87c03bd1489cba14f3bca30d31604534c7b65a..224fbcbfb21c2589262cb5857bd3c2d692637880 100644 (file)
@@ -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)