diff --git a/SQF/dayz_code/compile/player_countMagazinesWBackpack.sqf b/SQF/dayz_code/compile/player_countMagazinesWBackpack.sqf index be92fdefd..ec35e1d7a 100644 --- a/SQF/dayz_code/compile/player_countMagazinesWBackpack.sqf +++ b/SQF/dayz_code/compile/player_countMagazinesWBackpack.sqf @@ -50,7 +50,7 @@ if ((typeOf (unitBackPack player)) != "") then { ctrlActivate (_dialog displayCtrl 157); if (gear_done) then { waitUntil {ctrlShown (_dialog displayCtrl 159)}; - sleep 0.001; + uiSleep 0.001; }; for "_i" from 5000 to (5000 + _count) do { @@ -69,6 +69,6 @@ if ((typeOf (unitBackPack player)) != "") then { }; (findDisplay 106) closeDisplay 0; -if (gear_done) then {sleep 0.001;}; +if (gear_done) then {uiSleep 0.001;}; _magazineArray