From 48f8c44a7e62aad2e718f6b91eba69fdcd206776 Mon Sep 17 00:00:00 2001 From: A Man Date: Fri, 18 Feb 2022 09:26:36 +0100 Subject: [PATCH] Fix negative array index within key array Thx to iben for pointing that out. --- SQF/dayz_code/compile/keyboard.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);