From 82fcd89ed5489d949a545853cb73a8686b929068 Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 25 Oct 2018 23:29:44 +0000 Subject: [PATCH] Add debug_break() to default case in VM_Execute() git-svn-id: https://svn.eduke32.com/eduke32@7087 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/gameexec.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/duke3d/src/gameexec.cpp b/source/duke3d/src/gameexec.cpp index d2eb8e51d..579a90910 100644 --- a/source/duke3d/src/gameexec.cpp +++ b/source/duke3d/src/gameexec.cpp @@ -36,6 +36,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # include "lunatic_game.h" #endif +#include "debugbreak.h" + #if KRANDDEBUG # define GAMEEXEC_INLINE # define GAMEEXEC_STATIC @@ -5841,6 +5843,7 @@ GAMEEXEC_STATIC void VM_Execute(native_t loop) continue; default: // you aren't supposed to be here! + debug_break(); VM_ScriptInfo(insptr, 64); G_GameExit("An error has occurred in the " APPNAME " virtual machine.\n\n" "If you are an end user, please e-mail the file " APPBASENAME ".log\n"