From e95af79c8adefac38a7c49357d187a4fffbb7cde Mon Sep 17 00:00:00 2001 From: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com> Date: Thu, 23 Dec 2021 19:43:19 -0800 Subject: [PATCH] Consolidated if statement Changed default variable to achievement and removed the else. --- dGame/dMission/Mission.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dGame/dMission/Mission.cpp b/dGame/dMission/Mission.cpp index ac503b51..a180d32f 100644 --- a/dGame/dMission/Mission.cpp +++ b/dGame/dMission/Mission.cpp @@ -481,12 +481,10 @@ void Mission::YieldRewards() { inventoryComponent->AddItem(pair.first, count); } - int32_t lootSource = LOOT_SOURCE_NONE; + int32_t lootSource = LOOT_SOURCE_ACHIEVEMENT; if (info->reward_currency > 0) { if(info->isMission) { lootSource = LOOT_SOURCE_MISSION; - } else { - lootSource = LOOT_SOURCE_ACHIEVEMENT; } character->SetCoins(character->GetCoins() + info->reward_currency, lootSource); }