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"