fix CustomType ConvertDataToIntegerLua

This commit is contained in:
Dark Byte 2015-07-13 13:56:26 +02:00
parent 500c7599ed
commit de453d877b

View file

@ -281,7 +281,13 @@ begin
lua_pushinteger(L, address);
lua_call(L, bytesize,1);
lua_call(L, bytesize+1,1);
{
if lua_pcall(L, bytesize+1,1, 0)<>0 then
begin
Log('customtype error:'+Lua_ToString(L,-1));
end;
}
result:=lua_tointeger(L, -1);
lua_pop(L,lua_gettop(l));