diff options
Diffstat (limited to 'src/common.c')
-rw-r--r-- | src/common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c index f24ae5e..371d9d5 100644 --- a/src/common.c +++ b/src/common.c @@ -465,7 +465,9 @@ void Com_Error( error_type_t code, const char *fmt, ... ) { // may not be entered recursively if( com_errorEntered ) { #ifdef _DEBUG - Sys_DebugBreak(); + if( com_debug_break && com_debug_break->integer ) { + Sys_DebugBreak(); + } #endif Sys_Error( "recursive error after: %s", com_errorMsg ); } |