mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2025-04-14 21:33:01 +00:00
calling Com_Error before com_noErrorInterrupt was initialized would crash
This commit is contained in:
parent
076cf14d02
commit
fcab743f4a
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ void QDECL Com_Error( int code, const char *fmt, ... )
|
|||
|
||||
#if defined(_WIN32) && defined(_DEBUG)
|
||||
if ( code != ERR_DISCONNECT && code != ERR_NEED_CD ) {
|
||||
if (!com_noErrorInterrupt->integer && IsDebuggerPresent()) {
|
||||
if ((!com_noErrorInterrupt || !com_noErrorInterrupt->integer) && IsDebuggerPresent()) {
|
||||
__debugbreak();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue