Changed GetAttrPath to not warn on optional paths.

This commit is contained in:
Kyzentun
2014-08-25 03:38:22 -06:00
parent 96433cc3e4
commit a41d9c0467
3 changed files with 8 additions and 5 deletions
+4 -1
View File
@@ -417,7 +417,10 @@ bool ActorUtil::GetAttrPath( const XNode *pNode, const RString &sName, RString &
RString sDir;
if( !pNode->GetAttrValue("_Dir", sDir) )
{
LOG->Warn( "Relative path \"%s\", but path is unknown", sOut.c_str() );
if(!optional)
{
LOG->Warn( "Relative path \"%s\", but path is unknown", sOut.c_str() );
}
return false;
}
sOut = sDir+sOut;