Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong comparison #16

Merged
merged 3 commits into from
Jun 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions addons/main/functions/fnc_addChestpack.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
*
* Public: No
*/
params ["_unit", "_chestpackClass", ["_backpackLoadout", []], ["_backpackVariables", []], ["_backpackLoad", nil]];
params ["_unit", "_chestpackClass", ["_backpackLoadout", []], ["_backpackVariables", []], ["_backpackLoad", -1]];
Canibus marked this conversation as resolved.
Show resolved Hide resolved

if (_backpackLoad isEqualTo nil) then {
if (_backpackLoad isEqualTo -1) then {
mjc4wilton marked this conversation as resolved.
Show resolved Hide resolved
Canibus marked this conversation as resolved.
Show resolved Hide resolved
_backpackLoad = loadBackpack _unit;
};

Expand All @@ -36,8 +36,8 @@
};

//add EHs
private _getInID = _unit addEventHandler ["GetInMan",FUNC(EHGetIn)];

Check failure on line 39 in addons/main/functions/fnc_addChestpack.sqf

View workflow job for this annotation

GitHub Actions / build

event `addEventHandler` requires version 1.58

requires version 1.58
private _getOutID = _unit addEventHandler ["GetOutMan",FUNC(EHGetOut)];

Check failure on line 40 in addons/main/functions/fnc_addChestpack.sqf

View workflow job for this annotation

GitHub Actions / build

event `addEventHandler` requires version 1.58

requires version 1.58
private _animID = _unit addEventHandler ["AnimDone",FUNC(EHAnimDone)];
private _killedID = _unit addEventHandler ["Killed",FUNC(EHKilled)];

Expand Down
Loading