aboutsummaryrefslogtreecommitdiff
path: root/games/jfsw/fixsegfault.diff
diff options
context:
space:
mode:
Diffstat (limited to 'games/jfsw/fixsegfault.diff')
-rw-r--r--games/jfsw/fixsegfault.diff12
1 files changed, 12 insertions, 0 deletions
diff --git a/games/jfsw/fixsegfault.diff b/games/jfsw/fixsegfault.diff
new file mode 100644
index 000000000000..9290ffef9613
--- /dev/null
+++ b/games/jfsw/fixsegfault.diff
@@ -0,0 +1,12 @@
+diff -Naur jfsw.orig/src/menus.c jfsw/src/menus.c
+--- jfsw.orig/src/menus.c 2017-03-24 23:22:17.000000000 -0400
++++ jfsw/src/menus.c 2018-07-10 22:51:52.032019948 -0400
+@@ -2540,7 +2540,7 @@
+ CONTROL_ClearUserInput(&mnu_input);
+ CONTROL_GetUserInput(&mnu_input);
+
+- if (KB_KeyPressed(sc_Y) || KB_KeyPressed(sc_Enter) || mnu_input.button0)
++ if (KB_KeyPressed(sc_Y) || KB_KeyPressed(sc_Enter))
+ return (TRUE);
+ else
+ return (FALSE);