mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
must be _x
magazineCargo return strings, not objects
This commit is contained in:
parent
ffdecf9dc8
commit
e1bc965fdd
@ -25,13 +25,13 @@ _modifiedGardens = [];
|
||||
_garden = _x;
|
||||
_cargo = magazineCargo _x;
|
||||
// find all seeds
|
||||
_seeds = _cargo select {(typeOf _x) in _seedClasses};
|
||||
_seeds = _cargo select {_x in _seedClasses};
|
||||
// find all baby plants
|
||||
_babies = _cargo select {(typeOf _x) in _babyClasses};
|
||||
_babies = _cargo select {_x in _babyClasses};
|
||||
// find all teen plants
|
||||
_teens = _cargo select {(typeOf _x) in _teenClasses};
|
||||
_teens = _cargo select {_x in _teenClasses};
|
||||
// find all mature plants
|
||||
_mature = _cargo select {(typeOf _x) in _matureClasses};
|
||||
_mature = _cargo select {_x in _matureClasses};
|
||||
|
||||
// normalize storage
|
||||
clearWeaponCargoGlobal _x;
|
||||
|
Loading…
x
Reference in New Issue
Block a user