Skip to content

Commit

Permalink
Eliminate C4456 warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Jan 27, 2016
1 parent 8b48f4d commit 3bca1e2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/xrCore/XML/XMLDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3bca1e2

Please sign in to comment.