aboutsummaryrefslogtreecommitdiff
path: root/games/openbor/files/patch-sdl_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/openbor/files/patch-sdl_menu.c')
-rw-r--r--games/openbor/files/patch-sdl_menu.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/games/openbor/files/patch-sdl_menu.c b/games/openbor/files/patch-sdl_menu.c
new file mode 100644
index 000000000000..023fb8417e64
--- /dev/null
+++ b/games/openbor/files/patch-sdl_menu.c
@@ -0,0 +1,13 @@
+Don't crash with empty Paks/ directory.
+
+--- sdl/menu.c.orig 2015-04-18 21:21:56 UTC
++++ sdl/menu.c
+@@ -747,7 +747,7 @@ void Menu()
+ }
+ freeAllLogs();
+ termMenu();
+- if(ctrl == 2)
++ if(dListTotal == 0 || ctrl == 2)
+ {
+ if (filelist)
+ {