Get the Lua context from the callback and not the listener
This commit is contained in:
parent
257f95f1d3
commit
5843f631af
@ -162,7 +162,7 @@ static void HandleProductResult(IAPCommand* cmd)
|
|||||||
|
|
||||||
IAPResponse* response = (IAPResponse*)cmd->m_Data;
|
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);
|
int top = lua_gettop(L);
|
||||||
|
|
||||||
if (!dmScript::SetupCallback(cmd->m_Callback))
|
if (!dmScript::SetupCallback(cmd->m_Callback))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user