From 52f75570398bfdfd993ca8d2820b96c4c3e13c18 Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Sun, 11 Aug 2024 00:12:26 -0700 Subject: [PATCH] Use the correct bit field for checking whether or not to decrement progress Tested that the cooking mission with johnny umami now no longer allows you to lose progress by deleting items. --- dGame/dMission/MissionTask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dGame/dMission/MissionTask.cpp b/dGame/dMission/MissionTask.cpp index 2fe9bc9fa..aa2b9bcae 100644 --- a/dGame/dMission/MissionTask.cpp +++ b/dGame/dMission/MissionTask.cpp @@ -186,7 +186,7 @@ void MissionTask::Progress(int32_t value, LWOOBJID associate, const std::string& if (count < 0) { if (mission->IsMission() && type == eMissionTaskType::GATHER && InAllTargets(value)) { - if (parameters.size() > 0 && (parameters[0] & 1) != 0) { + if (parameters.size() > 0 && (parameters[0] & 4) != 0) { return; }