diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 48191e83..4f31f0c0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,6 +22,7 @@ #include <cstdlib> #include <getopt.h> +#include <signal.h> #include <iostream> #include <physfs.h> #include <SDL.h> @@ -135,6 +136,8 @@ void initialize() exit(1); } + signal(SIGSEGV, SIG_DFL); + // set SDL to quit on exit. atexit(SDL_Quit); |