mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Fix negative array index within key array
Thx to iben for pointing that out.
This commit is contained in:
@@ -263,7 +263,7 @@ if (isNil "keyboard_keys") then {
|
|||||||
|
|
||||||
local _addArray = {
|
local _addArray = {
|
||||||
{
|
{
|
||||||
if (_x <= 999999) then {
|
if (_x >= 0 && {_x <= 999999}) then { // Ensure positive values only.
|
||||||
keyboard_keys set [_x, _this select 1];
|
keyboard_keys set [_x, _this select 1];
|
||||||
};
|
};
|
||||||
} forEach (_this select 0);
|
} forEach (_this select 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user