On Sun, Nov 06, 2016 at 12:03:47AM +0500, Mihail Konev wrote: > + if (overlay_enabled) > + overlay_keys[which_overlay][(unsigned char)key] = behavior.data; > + else > + behavior_data = overlay_keys[which_overlay][(unsigned char)key]; > + Must be [which_overlay-1].