From 510f05842ce16dee72d82c1eafbc2c73fbb988dc Mon Sep 17 00:00:00 2001 From: worldwidesorrow Date: Sat, 24 Jul 2021 08:14:19 -0500 Subject: [PATCH] Prevent non-string values from being checked by fnc_inString --- SQF/dayz_code/compile/fn_localizeMessage.sqf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/compile/fn_localizeMessage.sqf b/SQF/dayz_code/compile/fn_localizeMessage.sqf index 63d0e63f7..090c31905 100644 --- a/SQF/dayz_code/compile/fn_localizeMessage.sqf +++ b/SQF/dayz_code/compile/fn_localizeMessage.sqf @@ -15,8 +15,10 @@ if (_type in _multiArray) then { _index = _forEachIndex; if (typeName _x == "ARRAY") then { { - if (["STR_",_x] call fnc_inString) then { - (_message select _index) set [_forEachIndex, localize _x]; + if (typeName _x == "STRING") then { + if (["STR_",_x] call fnc_inString) then { + (_message select _index) set [_forEachIndex, localize _x]; + }; }; } forEach _x; _message set [_index, format _x];