Lua->C getintfield() use lua_tointeger (#4408)
authorTomas <tomasbrod@azet.sk>
Wed, 10 Aug 2016 10:17:48 +0000 (12:17 +0200)
committerest31 <est31@users.noreply.github.com>
Wed, 10 Aug 2016 10:17:48 +0000 (12:17 +0200)
commitc013c73f338b1c2227662458ebc650883f83271c
tree14d65d406324dce95de99e2af932a643f2f59033
parent4503b5097f99d2806763650f33d8ef3b49f77ce4
Lua->C getintfield() use lua_tointeger (#4408)

previously function used tonumber which returned float
this caused errors in large numbers and resulted in
obj-def-handlers being invalid when retrived from lua tables in c
src/script/common/c_converter.cpp