Skip to content

Commit 3bca1e2

Browse files
author
nitrocaster
committed
Eliminate C4456 warning.
1 parent 8b48f4d commit 3bca1e2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/xrCore/XML/XMLDocument.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,9 @@ void ParseFile(LPCSTR path, CMemoryWriter& W, IReader *F, XMLDocument* xml )
4141

4242
if(!I)
4343
I = FS.r_open(path, inc_name);
44-
45-
if(!I){
46-
string1024 str;
47-
xr_sprintf(str,"XML file[%s] parsing failed. Can't find include file:[%s]",path,inc_name);
48-
R_ASSERT2(false,str);
49-
}
44+
45+
if(!I)
46+
FATAL_F("XML file[%s] parsing failed. Can't find include file:[%s]", path, inc_name);
5047
ParseFile(path, W, I, xml);
5148
FS.r_close (I);
5249
}

0 commit comments

Comments
 (0)