Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
missing call CBA_fnc_addEventHandler for initCargo
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Burkhardt committed May 30, 2018
1 parent 50a4198 commit ef3ba29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions [J]OPT.chernarus/cargo/functions/fnc_initCBAClassEvents.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
["Thing", "init", {
params ["_item"];

if (local _vec) then {
[QGVAR(initCargo), [_vec]] call CBA_fnc_localEvent; // global effect
if (local _item) then {
[QGVAR(initCargo), [_item]] call CBA_fnc_localEvent; // global effect
} else {
[QGVAR(initCargo), [_vec]] call CBA_fnc_serverEvent; // global effect
[QGVAR(initCargo), [_item]] call CBA_fnc_serverEvent; // global effect
};
[_item] call FUNC(initDragging);

Expand Down
2 changes: 1 addition & 1 deletion [J]OPT.chernarus/cargo/functions/fnc_initCBAEvents.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
params ["_vec"];

[_vec] call FUNC(initCargo);
}];
}] call CBA_fnc_addEventHandler;

[QGVAR(initDragging), {
params ["_item"];
Expand Down

0 comments on commit ef3ba29

Please sign in to comment.