mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Cargo - Fix object lock when failling to load a carried object (#9759)
This commit is contained in:
parent
a97a8dbb73
commit
7696d9aa2e
@ -64,6 +64,8 @@ if ([_item, _vehicle] call FUNC(canLoadItemIn)) then {
|
|||||||
|
|
||||||
[objNull, _item, true] call EFUNC(common,claim);
|
[objNull, _item, true] call EFUNC(common,claim);
|
||||||
|
|
||||||
|
[[LSTRING(loadingFailed), [_item, true] call FUNC(getNameItem)], 3] call EFUNC(common,displayTextStructured);
|
||||||
|
|
||||||
// Fix cancelling loading a carried item
|
// Fix cancelling loading a carried item
|
||||||
if (!isNull attachedTo _item) then {
|
if (!isNull attachedTo _item) then {
|
||||||
detach _item;
|
detach _item;
|
||||||
@ -85,6 +87,9 @@ if ([_item, _vehicle] call FUNC(canLoadItemIn)) then {
|
|||||||
|
|
||||||
true // return
|
true // return
|
||||||
} else {
|
} else {
|
||||||
|
// Unlock the object
|
||||||
|
[objNull, _item, true] call EFUNC(common,claim);
|
||||||
|
|
||||||
[[LSTRING(loadingFailed), [_item, true] call FUNC(getNameItem)], 3] call EFUNC(common,displayTextStructured);
|
[[LSTRING(loadingFailed), [_item, true] call FUNC(getNameItem)], 3] call EFUNC(common,displayTextStructured);
|
||||||
|
|
||||||
// Fix cancelling loading a carried item
|
// Fix cancelling loading a carried item
|
||||||
|
Loading…
Reference in New Issue
Block a user