add assignment I forgot
authorsheepluva
Tue, 01 Jul 2014 12:39:06 +0200
changeset 10347 fd80921a8f81
parent 10346 dd22bcf08e4f
child 10348 8a90df36bccb
add assignment I forgot
hedgewars/uScript.pas
--- 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);