fix Type= specification in BGALayer

This commit is contained in:
Chris Danford
2005-01-08 02:05:31 +00:00
parent dc6e6f0d21
commit 86d66c6e23
+3 -2
View File
@@ -42,9 +42,10 @@ Actor* LoadFromActorFile( const CString& sAniDir, const XNode& layer )
{
Actor* pActor = NULL; // fill this in before we return
// Element name is the type in XML.
// Type= is the name in INI.
CString sType = layer.m_sName;
if( sType.empty() )
layer.GetAttrValue( "Type", sType );
layer.GetAttrValue( "Type", sType );
CString sFile;
layer.GetAttrValue( "File", sFile );