Skip to content

Commit

Permalink
Use the correct bit field for checking whether or not to decrement pr…
Browse files Browse the repository at this point in the history
…ogress

Tested that the cooking mission with johnny umami now no longer allows you to lose progress by deleting items.
  • Loading branch information
EmosewaMC committed Aug 11, 2024
1 parent aaf446f commit 52f7557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dGame/dMission/MissionTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 52f7557

Please sign in to comment.