Skip to content

Commit

Permalink
do not throw error when rewrite callback. Only log
Browse files Browse the repository at this point in the history
  • Loading branch information
d954mas authored Nov 11, 2023
1 parent 7b18cd0 commit 080c911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poki-sdk/src/pokisdk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static int PokiSdk_CommercialBreak(lua_State* L)
return 0;
}
if (pokiSdk_Callback != 0x0) {
luaL_error(L, "PokiSDK CommercialBreak callback already exist. Rewrite callback");
dmLogError("PokiSdk_CommercialBreak PokiSDK callback already exist. Rewrite callback");
}
DM_LUA_STACK_CHECK(L, 0);
pokiSdk_Callback = dmScript::CreateCallback(L, 1);
Expand All @@ -146,7 +146,7 @@ static int PokiSdk_RewardedBreak(lua_State* L)
return 0;
}
if (pokiSdk_Callback != 0x0) {
luaL_error(L, "PokiSDK RewardedBreak callback already exist. Rewrite callback");
dmLogError("PokiSdk_RewardedBreak PokiSDK callback already exist. Rewrite callback");
}
DM_LUA_STACK_CHECK(L, 0);
pokiSdk_Callback = dmScript::CreateCallback(L, 1);
Expand Down

0 comments on commit 080c911

Please sign in to comment.