Prevent non-string values from being checked by fnc_inString

This commit is contained in:
worldwidesorrow
2021-07-24 08:14:19 -05:00
parent 53d92ba335
commit 510f05842c

View File

@@ -15,9 +15,11 @@ if (_type in _multiArray) then {
_index = _forEachIndex; _index = _forEachIndex;
if (typeName _x == "ARRAY") then { if (typeName _x == "ARRAY") then {
{ {
if (typeName _x == "STRING") then {
if (["STR_",_x] call fnc_inString) then { if (["STR_",_x] call fnc_inString) then {
(_message select _index) set [_forEachIndex, localize _x]; (_message select _index) set [_forEachIndex, localize _x];
}; };
};
} forEach _x; } forEach _x;
_message set [_index, format _x]; _message set [_index, format _x];
} else { } else {