Skip to content
Permalink
Browse files

Fix out of bounds array access (#561)

  • Loading branch information
kraflab committed Mar 24, 2020
1 parent 44eff69 commit e5d3c0c32ac884fc278d3e0995c4aaa6cfcd1d06
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/heretic/g_game.c
@@ -311,7 +311,8 @@ void G_BuildTiccmd(ticcmd_t *cmd, int maketic)
// [crispy] when "always run" is active,
// pressing the "run" key will result in walking
speed = (joybspeed >= MAX_JOY_BUTTONS)
^ (gamekeydown[key_speed] || joybuttons[joybspeed]);
^ (gamekeydown[key_speed]
|| (joybspeed < MAX_JOY_BUTTONS && joybuttons[joybspeed]));

// haleyjd: removed externdriver crap

0 comments on commit e5d3c0c

Please sign in to comment.
You can’t perform that action at this time.