mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Fix a rare error with keyboard_keys
Some combo binds will cause actionKeys to return a number greater than six digits. See AgentRev's note: https://community.bistudio.com/wiki/actionKeys An example is NumLock + P [1.15763e+009]. Using a number this large as an index errors out. Example: test_array = []; test_array set [9999991,true]; But six digits or less will not error: test_array = []; test_array set [999999,true];
This commit is contained in:
@@ -240,7 +240,9 @@ if (isNil "keyboard_keys") then {
|
||||
|
||||
_addArray = {
|
||||
{
|
||||
keyboard_keys set [_x, _this select 1];
|
||||
if (_x <= 999999) then {
|
||||
keyboard_keys set [_x, _this select 1];
|
||||
};
|
||||
} forEach (_this select 0);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user