mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
Encapsulated variable properly
lootSource was not encapsulated properly so this is now fixed.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user