Skip to content

Commit

Permalink
fix reading issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jokoho48 committed Jun 19, 2021
1 parent 711c986 commit b4bca7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/wp/functions/fnc_sideHasArtillery.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ params [
["_pos", [], [[]]]
];

private _artillery = _side in GVAR(SideArtilleryHash);
private _artillery = GVAR(SideArtilleryHash) getOrDefault [_side, []];
if (_pos isNotEqualTo []) then {
_artillery = _artillery select {
canFire _x
Expand Down

0 comments on commit b4bca7f

Please sign in to comment.