From 3bca1e2e2487cb1a8ed1c3983c86970be5917d0b Mon Sep 17 00:00:00 2001 From: nitrocaster Date: Tue, 26 Jan 2016 00:57:34 +0300 Subject: [PATCH] Eliminate C4456 warning. --- src/xrCore/XML/XMLDocument.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/xrCore/XML/XMLDocument.cpp b/src/xrCore/XML/XMLDocument.cpp index b1efadc2bdf..7fa2071cf3d 100644 --- a/src/xrCore/XML/XMLDocument.cpp +++ b/src/xrCore/XML/XMLDocument.cpp @@ -41,12 +41,9 @@ void ParseFile(LPCSTR path, CMemoryWriter& W, IReader *F, XMLDocument* xml ) if(!I) I = FS.r_open(path, inc_name); - - if(!I){ - string1024 str; - xr_sprintf(str,"XML file[%s] parsing failed. Can't find include file:[%s]",path,inc_name); - R_ASSERT2(false,str); - } + + if(!I) + FATAL_F("XML file[%s] parsing failed. Can't find include file:[%s]", path, inc_name); ParseFile(path, W, I, xml); FS.r_close (I); }