From 61c1ef924b5c1ccbc66b45e6041200a443178483 Mon Sep 17 00:00:00 2001 From: Axel Cocat Date: Wed, 31 May 2023 00:38:30 +0200 Subject: [PATCH] fix: fix crash in CanCompleteRepeatableQuest / CanRewardQuest --- src/LuaEngine/PlayerMethods.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LuaEngine/PlayerMethods.h b/src/LuaEngine/PlayerMethods.h index 9cdfe0a..77191f4 100644 --- a/src/LuaEngine/PlayerMethods.h +++ b/src/LuaEngine/PlayerMethods.h @@ -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