From de453d877b92dfec4ff73e248af265f03d873ea3 Mon Sep 17 00:00:00 2001 From: Dark Byte Date: Mon, 13 Jul 2015 13:56:26 +0200 Subject: [PATCH] fix CustomType ConvertDataToIntegerLua --- Cheat Engine/CustomTypeHandler.pas | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Cheat Engine/CustomTypeHandler.pas b/Cheat Engine/CustomTypeHandler.pas index aed82d20..c9191f98 100644 --- a/Cheat Engine/CustomTypeHandler.pas +++ b/Cheat Engine/CustomTypeHandler.pas @@ -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));