mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix isSubPath
This commit is contained in:
parent
f5f91c4802
commit
dbb9765035
@ -20,7 +20,7 @@ _isSubPath = true;
|
|||||||
|
|
||||||
if (count _shortPath > count _longPath) exitWith {false};
|
if (count _shortPath > count _longPath) exitWith {false};
|
||||||
|
|
||||||
for [{_i = 0},{_i < (count _shortPath) - 1},{_i = _i + 1}] do {
|
for [{_i = 0},{_i < count _shortPath},{_i = _i + 1}] do {
|
||||||
if !((_longPath select _i) isEqualTo (_shortPath select _i)) exitWith {
|
if !((_longPath select _i) isEqualTo (_shortPath select _i)) exitWith {
|
||||||
_isSubPath = false;
|
_isSubPath = false;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user