Skip to content

Commit 29659eb

Browse files
committed
bugfixes
1 parent f438e7e commit 29659eb

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

addons/overthrow_main.pbo

51 Bytes
Binary file not shown.

addons/overthrow_main/functions/actions/fn_dumpIntoWarehouse.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ if(hmd _unit != "") then {
1414
_count = 0;
1515
_cls = _x select 0;
1616
while {_count < (_x select 1)} do {
17-
[_t, _cls] call {
18-
params ["_veh", "_cls"];
17+
[_cls] call {
18+
params ["_cls"];
1919
if(_cls isKindOf ["Rifle",configFile >> "CfgWeapons"]) exitWith {
2020
_unit removeWeapon _cls;
2121
};

addons/overthrow_main/functions/save/fn_loadGame.sqf

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ sleep 0.2;
4646
if(_x isEqualType []) then {
4747
if(count _x == 2) then {
4848
_x params ["_k","_v"];
49-
if(_k isEqualTo "OT_tutesDone") then {
49+
if(_k isEqualTo "ot_tutesdone") then {
5050
_x set [1,_v arrayIntersect _v];
5151
};
5252
};
@@ -103,9 +103,11 @@ sleep 0.2;
103103
case 2: {
104104
_val deleteAt 0;
105105
{
106-
_x params ["_itemClass",["_itemCount",0,[0]]];
107-
if (_itemCount > 0) then {
108-
warehouse setVariable [format["item_%1",_itemClass],[_itemClass,_itemCount],true];
106+
if(!isNil "_x" && _x isEqualType []) then {
107+
_x params ["_itemClass",["_itemCount",0,[0]]];
108+
if (_itemCount > 0) then {
109+
warehouse setVariable [format["item_%1",_itemClass],[_itemClass,_itemCount],true];
110+
};
109111
};
110112
}foreach(_val);
111113
};

0 commit comments

Comments
 (0)