Vault corrections

This commit is contained in:
EmosewaMC
2022-04-13 01:49:55 -07:00
parent e92cdc4f14
commit a32c5a2f3c
6 changed files with 24 additions and 3 deletions

View File

@@ -511,9 +511,11 @@ void Mission::YieldRewards() {
}
if (info->reward_bankinventory > 0) {
auto* inventory = inventoryComponent->GetInventory(VAULT_ITEMS);
auto* inventory = inventoryComponent->GetInventory(eInventoryType::VAULT_ITEMS);
auto modelInventory = inventoryComponent->GetInventory(eInventoryType::VAULT_MODELS);
inventory->SetSize(inventory->GetSize() + info->reward_bankinventory);
modelInventory->SetSize(modelInventory->GetSize() + info->reward_bankinventory);
}
if (info->reward_reputation > 0) {