diff --git a/SQF/dayz_code/compile/keyboard.sqf b/SQF/dayz_code/compile/keyboard.sqf index 0d174cc50..0800fd3ed 100644 --- a/SQF/dayz_code/compile/keyboard.sqf +++ b/SQF/dayz_code/compile/keyboard.sqf @@ -263,7 +263,7 @@ if (isNil "keyboard_keys") then { local _addArray = { { - if (_x <= 999999) then { + if (_x >= 0 && {_x <= 999999}) then { // Ensure positive values only. keyboard_keys set [_x, _this select 1]; }; } forEach (_this select 0);