another great isNotEqualTo opportunity

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
lambdatiger 2024-01-17 18:23:12 -06:00 committed by GitHub
parent 16128721e0
commit 3cc300a04d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,8 +37,7 @@ private _hMode = switch (true) do {
default {"_mid"};
};
private _type = if (count _fragType > 0 &&
{"ace_frag_tiny" isEqualTo (_fragType#0)}) then {
private _type = if (_fragType isNotEqualTo [] && {"ace_frag_tiny" isEqualTo (_fragType#0)}) then {
QGVAR(def_tiny_)
} else {
QGVAR(def_small_)