Skip to content

Commit

Permalink
Fix Scopes INIT
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Windmolders committed Nov 21, 2014
1 parent b464544 commit 93c86fd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions DayZ_Epoch_11.Chernarus/ZSC/gold/ZSCinit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,14 @@ BankDialogWithdrawAmount = {

BankDialogDepositAmount = {
private ["_amount","_bank","_wealth"];
_vehicleType = typeOf ZSC_CurrentStorage;
_vehicleType = typeOf ZSC_CurrentStorage;
_maxCap = 0;
_displayName = "Storage";
if(isClass(configFile >> "CfgVehicles" >> _vehicleType ))then{
_displayName = getText (configFile >> "CfgVehicles" >> _vehicleType >> "displayName");
_vehicleMagazines = getNumber (configFile >> "CfgVehicles" >> _vehicleType >> "transportMaxMagazines");
_maxCap = _vehicleMagazines * ZSC_MaxMoneyInStorageMultiplier;
}else{
_maxCap = 0;
}else{
_displayName = "Unknown";
};

Expand Down

0 comments on commit 93c86fd

Please sign in to comment.