Encapsulated variable properly

lootSource was not encapsulated properly so this is now fixed.
This commit is contained in:
EmosewaMC 2022-01-03 03:11:04 -08:00
parent 5e605b30de
commit 74013e07a8

View File

@ -481,8 +481,8 @@ void Mission::YieldRewards() {
inventoryComponent->AddItem(pair.first, count); inventoryComponent->AddItem(pair.first, count);
} }
int32_t lootSource = LOOT_SOURCE_ACHIEVEMENT;
if (info->reward_currency > 0) { if (info->reward_currency > 0) {
int32_t lootSource = LOOT_SOURCE_ACHIEVEMENT;
if(info->isMission) { if(info->isMission) {
lootSource = LOOT_SOURCE_MISSION; lootSource = LOOT_SOURCE_MISSION;
} }