Permalink
Browse files

Update fn_fetchPlayerHouses.sqf (never-ending pushback bug) (#294)

* Update fn_fetchPlayerHouses.sqf

* Update fn_fetchPlayerHouses.sqf

im unsure the purpose of the below..... apart from another SVAR in queryRequest i dont see it being called, which could make line 84 and 87 useless. 
missionNamespace setVariable [format ["houses_%1",_uid],_return];

* Update fn_fetchPlayerHouses.sqf
  • Loading branch information...
fresqo authored and BoGuu committed Apr 16, 2017
1 parent 88c4da4 commit fd1a642bae4e8df08279e4f4782bc705efcf7b0d
@@ -30,6 +30,7 @@ _containerss = [];
if (_gear isEqualType "") then {_gear = call compile format ["%1", _gear];};
_container = createVehicle[_x select 2,[0,0,999],[],0,"NONE"];
waitUntil {!isNil "_container" && {!isNull _container}};
_containerss = _house getVariable ["containers",[]];
_containerss pushBack _container;
_container allowDamage false;
_container setPosATL _position;
@@ -80,7 +81,7 @@ _return = [];
_pos = call compile format ["%1",_x select 1];
_house = nearestObject [_pos, "House"];
_house allowDamage false;
_return pushBack [_x select 1,_containerss];
_return pushBack [_x select 1];
} forEach _houses;
missionNamespace setVariable [format ["houses_%1",_uid],_return];
@@ -28,6 +28,7 @@ _containerss = [];
if (_gear isEqualType "") then {_gear = call compile format ["%1", _gear];};
_container = createVehicle[_x select 2,[0,0,999],[],0,"NONE"];
waitUntil {!isNil "_container" && {!isNull _container}};
_containerss = _house getVariable ["containers",[]];
_containerss pushBack _container;
_container allowDamage false;
_container setPosATL _position;
@@ -78,7 +79,7 @@ _return = [];
_pos = call compile format ["%1",_x select 1];
_house = nearestObject [_pos, "House"];
_house allowDamage false;
_return pushBack [_x select 1,_containerss];
_return pushBack [_x select 1];
} forEach _houses;
missionNamespace setVariable [format ["houses_%1",_uid],_return];
missionNamespace setVariable [format ["houses_%1",_uid],_return];

0 comments on commit fd1a642

Please sign in to comment.