summaryrefslogtreecommitdiff
path: root/games/jfsw/patches/fixsegfault.diff
diff options
context:
space:
mode:
Diffstat (limited to 'games/jfsw/patches/fixsegfault.diff')
-rw-r--r--games/jfsw/patches/fixsegfault.diff12
1 files changed, 12 insertions, 0 deletions
diff --git a/games/jfsw/patches/fixsegfault.diff b/games/jfsw/patches/fixsegfault.diff
new file mode 100644
index 0000000000..9290ffef96
--- /dev/null
+++ b/games/jfsw/patches/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);