From 9100fd729582e408ff4b2199eb8629f3cdf91a16 Mon Sep 17 00:00:00 2001 From: JetBoom Date: Sun, 23 Nov 2014 14:56:59 -0500 Subject: [PATCH] Fix pendboard error while loading in. --- gamemodes/zombiesurvival/gamemode/vgui/pendboard.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemodes/zombiesurvival/gamemode/vgui/pendboard.lua b/gamemodes/zombiesurvival/gamemode/vgui/pendboard.lua index 13711d9..0476151 100644 --- a/gamemodes/zombiesurvival/gamemode/vgui/pendboard.lua +++ b/gamemodes/zombiesurvival/gamemode/vgui/pendboard.lua @@ -17,7 +17,7 @@ function MakepEndBoard(winner) pEndBoard = nil end - local localwin = winner == TEAM_HUMAN and LocalPlayer():Team() == winner + local localwin = winner == TEAM_HUMAN and LocalPlayer():IsValid() and LocalPlayer():Team() == winner local wid = 640