Skip to content

Commit

Permalink
(#642): added guard against undefined array for BLWK_lootMarkers
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansible2 committed Jul 8, 2023
1 parent 2cc9993 commit 59a1040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Functions/Waves/fn_spawnLoot.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if (!isServer) exitWith {false};
/* ----------------------------------------------------------------------------
Delete Previous Loot Markers
---------------------------------------------------------------------------- */
BLWK_lootMarkers apply { deleteMarker _x };
(missionNamespace getVariable ["BLWK_lootMarkers",[]]) apply { deleteMarker _x };


/* ----------------------------------------------------------------------------
Expand Down Expand Up @@ -105,7 +105,7 @@ private _exit = false;
_sortedPositions pushBack (AGLToASL _buildingPositionWithHeightIncrease);
};
} forEach _buildingsPositions;

} forEach BLWK_playAreaBuildings;

// if there are less available positions in the area then the max allowed, just readjust
Expand Down

0 comments on commit 59a1040

Please sign in to comment.