Construction Mode: Fix mine timer message being shown at start
authorWuzzy <almikes@aol.com>
Wed, 13 Apr 2016 00:17:07 +0200
changeset 11721 c7cdd98bb1ec
parent 11720 511d0f2aa9bf
child 11722 f35139700d22
Construction Mode: Fix mine timer message being shown at start
share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua	Tue Apr 12 23:50:49 2016 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua	Wed Apr 13 00:17:07 2016 +0200
@@ -1635,6 +1635,7 @@
 end
 
 function showModeMessage()
+	if CurrentHedgehog == nil then return end
 	local val = pMode[pIndex]
 	local str
 	if cat[cIndex] == "Mine Placement Mode" then