Skip to content

Commit

Permalink
Fixed wrong owner check in fn_addBombRun.sqf (#3446)
Browse files Browse the repository at this point in the history
* Update fn_addBombRun.sqf

* Update fn_addBombRun.sqf
  • Loading branch information
ante185 authored Dec 6, 2024
1 parent edcdbf9 commit 2a62eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion A3A/addons/core/functions/REINF/fn_addBombRun.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FIX_LINE_NUMBERS()
#define OccAndInv(VEH) (FactionGet(occ, VEH) + FactionGet(inv, VEH))
private _titleStr = localize "STR_A3A_fn_reinf_bombrun_title";
private _owner = _veh getVariable "ownerX";
private _wrongOwner = !(isNil "_owner" && {_owner isEqualType ""} && {getPlayerUID player != _owner});
private _wrongOwner = !(isNil "_owner" || {getPlayerUID player isEqualTo _owner}); //Returns false if no owner, false if is owner, true if is not owner

private _exitReason = switch (true) do {
case (isNull _veh): {"looking"};
Expand Down

0 comments on commit 2a62eb6

Please sign in to comment.