fix similar problem to last checkin with this lua, also fix line endings
authornemo
Tue, 28 Dec 2010 19:20:30 -0500
changeset 4764 674cdcf8b661
parent 4761 e73707bb99c0
child 4767 4ee4a49549e2
fix similar problem to last checkin with this lua, also fix line endings
share/hedgewars/Data/Maps/CTF_Blizzard/map.lua
--- a/share/hedgewars/Data/Maps/CTF_Blizzard/map.lua	Tue Dec 28 19:05:58 2010 -0500
+++ b/share/hedgewars/Data/Maps/CTF_Blizzard/map.lua	Tue Dec 28 19:20:30 2010 -0500
@@ -153,9 +153,11 @@
 	-- steam and smoke and DUST look good, smokering looks trippy 
 	-- smoketrace and eviltrace are not effected by wind?
 	-- chunk is a LR falling gear
-			tempE = AddVisualGear(eX, eY, vgtDust, 0, false)		
-			g1, g2, g3, g4, g5, g6, g7, g8, g9, g10 = GetVisualGearValues(tempE)
-			SetVisualGearValues(tempE, eX, eY, g3, g4, g5, g6, g7, g8, g9, fCol[i])
+			tempE = AddVisualGear(eX, eY, vgtDust, 0, false)
+			if tempE ~= 0 then
+				g1, g2, g3, g4, g5, g6, g7, g8, g9, g10 = GetVisualGearValues(tempE)
+				SetVisualGearValues(tempE, eX, eY, g3, g4, g5, g6, g7, g8, g9, fCol[i])
+			end
 		end
 	end 
 end