From e6c036454a92112fb917f5641b43b48fdfb71f12 Mon Sep 17 00:00:00 2001 From: worldwidesorrow Date: Wed, 29 Jul 2020 15:22:52 -0500 Subject: [PATCH] Update z_at_sellItems.sqf --- .../actions/AdvancedTrading/functions/z_at_sellItems.sqf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_sellItems.sqf b/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_sellItems.sqf index f78a1f767..cff1fa0b4 100644 --- a/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_sellItems.sqf +++ b/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_sellItems.sqf @@ -215,8 +215,8 @@ if (Z_SingleCurrency) then { if (typeName _money == "SCALAR") then { if (Z_SingleCurrency) then { - _wealth = player getVariable[Z_MoneyVariable,0]; - player setVariable[Z_MoneyVariable,(_wealth + _money),true]; + _wealth = player getVariable[(["cashMoney","globalMoney"] select Z_persistentMoney),0]; + player setVariable[(["cashMoney","globalMoney"] select Z_persistentMoney),(_wealth + _money),true]; systemChat format[localize "STR_EPOCH_TRADE_SUCCESS_CHANGE",[_money] call BIS_fnc_numberText,CurrencyName]; } else { _success = [_money,0,false,0,[],[],false] call Z_returnChange; @@ -233,4 +233,4 @@ if (typeName _money == "SCALAR") then { } else { systemChat localize "STR_EPOCH_TRADE_DEBUG"; diag_log "Money is not a number. Something went wrong."; -}; \ No newline at end of file +};