Continental supplies: Fix Lua error when first hog of team dies
authorWuzzy <Wuzzy2@mail.ru>
Sat, 15 Jun 2019 16:37:36 +0200
changeset 15175 13a69aad9325
parent 15174 276bdf531ae0
child 15176 c0ae9f4f9589
Continental supplies: Fix Lua error when first hog of team dies
share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Sat Jun 15 16:05:13 2019 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Sat Jun 15 16:37:36 2019 +0200
@@ -1643,7 +1643,9 @@
 end
 
 function SetContinentTeamLabel()
-	SetTeamLabel(GetHogTeamName(CurrentHedgehog), CS.CONTINENT_INFORMATION[CS.TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]][1])
+	if not CS.GAME_STARTED then
+		SetTeamLabel(GetHogTeamName(CurrentHedgehog), CS.CONTINENT_INFORMATION[CS.TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]][1])
+	end
 end
 
 function onGameTick()