Fix negative array index within key array

Thx to iben for pointing that out.
This commit is contained in:
A Man
2022-02-18 09:26:36 +01:00
parent f169e756f1
commit 48f8c44a7e

View File

@@ -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);