also for consistency (eg. so pParentActor is always applied)

This commit is contained in:
Glenn Maynard
2006-10-14 04:06:49 +00:00
parent a48f7f39f6
commit 52f5c12896
+6 -2
View File
@@ -442,8 +442,12 @@ Actor* ActorUtil::MakeActor( const RString &sPath_, const XNode *pParent, Actor
return ActorUtil::Create( "Model", &xml, pParentActor );
}
default:
LOG->Warn( "File \"%s\" has unknown type, \"%s\".", sPath.c_str(), FileTypeToString(ft).c_str() );
return new Actor;
{
LOG->Warn( "File \"%s\" has unknown type, \"%s\".", sPath.c_str(), FileTypeToString(ft).c_str() );
XNode xml( *pParent );
return ActorUtil::Create( "Actor", &xml, pParentActor );
}
}
}