0
0
Fork 0
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:
myT 2017-03-06 01:40:29 +01:00
parent 076cf14d02
commit fcab743f4a

View file

@ -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();
}
}