hedgewars/uScript.pas
changeset 7135 4d863aadd0b2
parent 7072 159616c24bb8
child 7156 09262f82e99d
--- a/hedgewars/uScript.pas	Mon May 28 00:44:51 2012 +0400
+++ b/hedgewars/uScript.pas	Mon May 28 01:51:50 2012 -0400
@@ -150,7 +150,7 @@
         lua_pushnil(L);
         end
     else
-        lua_pushinteger(L, lua_tointeger(L, 2) div lua_tointeger(L, 1));
+        lua_pushinteger(L, lua_tointeger(L, 1) div lua_tointeger(L, 2));
     lc_div := 1;
 end;