From 52f5c1289624652bc63dbb9e9aa3571da0072009 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 14 Oct 2006 04:06:49 +0000 Subject: [PATCH] also for consistency (eg. so pParentActor is always applied) --- stepmania/src/ActorUtil.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 0ab74aeb01..010391554b 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -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 ); + } } }