share/hedgewars/Data/Scripts/Params.lua
changeset 9985 42cd42e44c9a
parent 9908 81eb25ddf594
--- a/share/hedgewars/Data/Scripts/Params.lua	Mon Jan 13 14:40:06 2014 -0500
+++ b/share/hedgewars/Data/Scripts/Params.lua	Tue Jan 14 12:44:29 2014 +0400
@@ -3,7 +3,9 @@
 params = {}
 
 function parseParams()
-    for k, v in string.gmatch(ScriptParam, "(%w+)=([^,]+)") do
-        params[k] = v
+    if ScriptParam ~= nil then
+        for k, v in string.gmatch(ScriptParam, "(%w+)=([^,]+)") do
+            params[k] = v
+        end
     end
 end