From a2d4d6444408a439b795bde108fe10e0fb4c3dd5 Mon Sep 17 00:00:00 2001 From: Lev Date: Wed, 25 Jan 2017 04:49:16 +0500 Subject: [PATCH] Fix warnings in Sys_Error. --- rehlds/engine/sys_dll.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rehlds/engine/sys_dll.cpp b/rehlds/engine/sys_dll.cpp index 28ab3de..145e405 100644 --- a/rehlds/engine/sys_dll.cpp +++ b/rehlds/engine/sys_dll.cpp @@ -508,9 +508,10 @@ void NORETURN Sys_Error(const char *error, ...) } #endif // SWDS - //exit(-1); //Allahu akbar! - *(int *)NULL = NULL; + int *null = 0; + *null = 0; + exit(-1); } NOXREF void Sys_Warning(const char *pszWarning, ...)