Get the Lua context from the callback and not the listener

This commit is contained in:
Björn Ritzl 2021-04-27 19:52:14 +02:00
parent 257f95f1d3
commit 5843f631af

View File

@ -162,7 +162,7 @@ static void HandleProductResult(IAPCommand* cmd)
IAPResponse* response = (IAPResponse*)cmd->m_Data;
lua_State* L = dmScript::GetCallbackLuaContext(g_IAP.m_Listener);
lua_State* L = dmScript::GetCallbackLuaContext(cmd->m_Callback);
int top = lua_gettop(L);
if (!dmScript::SetupCallback(cmd->m_Callback))