# HG changeset patch # User Wuzzy # Date 1560609456 -7200 # Node ID 13a69aad93259dcbf6246e98c076be3e2a79824b # Parent 276bdf531ae01afca7f2c1b1608d8fbf830a5aa4 Continental supplies: Fix Lua error when first hog of team dies diff -r 276bdf531ae0 -r 13a69aad9325 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()