fix: fix crash in CanCompleteRepeatableQuest / CanRewardQuest

This commit is contained in:
Axel Cocat
2023-05-31 00:38:30 +02:00
parent 91e0499ce4
commit 61c1ef924b

View File

@@ -486,7 +486,7 @@ namespace LuaPlayer
if (!quest)
{
Eluna::Push(L, false);
return 0;
return 1;
}
Eluna::Push(L, player->CanCompleteRepeatableQuest(quest));
@@ -506,7 +506,7 @@ namespace LuaPlayer
if (!quest)
{
Eluna::Push(L, false);
return 0;
return 1;
}
Eluna::Push(L, player->CanRewardQuest(quest, true)); // Modify the second argument as needed