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,8 +15,10 @@ if (_type in _multiArray) then {
_index = _forEachIndex; _index = _forEachIndex;
if (typeName _x == "ARRAY") then { if (typeName _x == "ARRAY") then {
{ {
if (["STR_",_x] call fnc_inString) then { if (typeName _x == "STRING") then {
(_message select _index) set [_forEachIndex, localize _x]; if (["STR_",_x] call fnc_inString) then {
(_message select _index) set [_forEachIndex, localize _x];
};
}; };
} forEach _x; } forEach _x;
_message set [_index, format _x]; _message set [_index, format _x];