# HG changeset patch
# User Wuzzy <almikes@aol.com>
# Date 1460499427 -7200
# Node ID c7cdd98bb1ec25700c4b32134603592ec64481c2
# Parent  511d0f2aa9bf70c346e8dcdab004d1fb820aad9c
Construction Mode: Fix mine timer message being shown at start

diff -r 511d0f2aa9bf -r c7cdd98bb1ec 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