mirror of
https://github.com/defold/extension-iap
synced 2025-06-27 10:27:46 +02:00
Fixes for command invoke
This commit is contained in:
parent
81e04c496f
commit
8fda0a3ae9
@ -441,21 +441,21 @@ void HandlePurchaseResult(const Command* cmd)
|
||||
|
||||
static void InvokeCallback(Command* cmd)
|
||||
{
|
||||
switch (cmd.m_Command)
|
||||
switch (cmd->m_Command)
|
||||
{
|
||||
case CMD_PRODUCT_RESULT:
|
||||
HandleProductResult(&cmd);
|
||||
HandleProductResult(cmd);
|
||||
break;
|
||||
case CMD_PURCHASE_RESULT:
|
||||
HandlePurchaseResult(&cmd);
|
||||
HandlePurchaseResult(cmd);
|
||||
break;
|
||||
|
||||
default:
|
||||
assert(false);
|
||||
}
|
||||
|
||||
if (cmd.m_Data1) {
|
||||
free(cmd.m_Data1);
|
||||
if (cmd->m_Data1) {
|
||||
free(cmd->m_Data1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user