mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix setSpace not setting the correct value to spaceMax
This commit is contained in:
parent
4f5fc052e2
commit
1da8123a03
@ -47,7 +47,7 @@ if (_newSpace == (_vehicle getVariable [QGVAR(space), CARGO_SPACE(typeOf _vehicl
|
||||
// Apply new space globally
|
||||
_vehicle setVariable [QGVAR(space), _newSpace, true];
|
||||
// Set Maximal Space required for Inventory UI
|
||||
_vehicle setVariable [QGVAR(spaceMax), _newSpace, true];
|
||||
_vehicle setVariable [QGVAR(spaceMax), _space, true];
|
||||
// Necessary to update value, even if no space, as API could be used again
|
||||
_vehicle setVariable [QGVAR(hasCargo), _space > 0, true];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user