hedgewars/uScript.pas
changeset 4767 4ee4a49549e2
parent 4682 0fc1ff341482
child 4780 8571151411b3
--- a/hedgewars/uScript.pas	Tue Dec 28 19:20:30 2010 -0500
+++ b/hedgewars/uScript.pas	Tue Dec 28 19:32:21 2010 -0500
@@ -358,6 +358,11 @@
             lua_pushinteger(L, vg^.Timer);
             lua_pushinteger(L, vg^.Tint);
             end
+        else
+            begin
+            lua_pushnil(L); lua_pushnil(L); lua_pushnil(L); lua_pushnil(L); lua_pushnil(L);
+            lua_pushnil(L); lua_pushnil(L); lua_pushnil(L); lua_pushnil(L); lua_pushnil(L)
+            end
         end;
     lc_getvisualgearvalues:= 10;
 end;