From 7952bbd5f11aa294613ef4d881c179d33a2ad516 Mon Sep 17 00:00:00 2001 From: Alexey Gulev Date: Thu, 26 Sep 2019 10:58:16 +0200 Subject: [PATCH] Revert "Added LUA_MULTRET" This reverts commit af38c606dc37a9b6203533d2fab4e6d93ce72af9. --- extension-iap/src/iap_android.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension-iap/src/iap_android.cpp b/extension-iap/src/iap_android.cpp index 36e9501..54d0fac 100644 --- a/extension-iap/src/iap_android.cpp +++ b/extension-iap/src/iap_android.cpp @@ -347,7 +347,7 @@ static void HandleProductResult(const Command* cmd) IAP_PushError(L, "failed to fetch product", REASON_UNSPECIFIED); } - int ret = lua_pcall(L, 3, LUA_MULTRET, 0); + int ret = lua_pcall(L, 3, 0, 0); if (ret != 0) { dmLogError("Error running callback: %s", lua_tostring(L, -1)); lua_pop(L, 1); @@ -420,7 +420,7 @@ static void HandlePurchaseResult(const Command* cmd) IAP_PushError(L, "failed to buy product", REASON_UNSPECIFIED); } - int ret = lua_pcall(L, 3, LUA_MULTRET, 0); + int ret = lua_pcall(L, 3, 0, 0); if (ret != 0) { dmLogError("Error running callback: %s", lua_tostring(L, -1)); lua_pop(L, 1);