hedgewars/uScript.pas
changeset 10347 fd80921a8f81
parent 10346 dd22bcf08e4f
child 10368 7ebb71a36e95
--- a/hedgewars/uScript.pas	Tue Jul 01 12:30:36 2014 +0200
+++ b/hedgewars/uScript.pas	Tue Jul 01 12:39:06 2014 +0200
@@ -742,7 +742,7 @@
             if n = 6 then
                 begin
                 layer:= lua_tointeger(L, 6);
-                AddVisualGear(x, y, vgt, s, c, layer);
+                vg:= AddVisualGear(x, y, vgt, s, c, layer);
                 end
             else
                 vg:= AddVisualGear(x, y, vgt, s, c);