This commit is contained in:
Glenn Maynard
2005-09-07 09:20:00 +00:00
parent 16b1fafa83
commit 3db3ff7e51
+2 -3
View File
@@ -230,9 +230,8 @@ void Actor::LoadFromNode( const CString& sDir, const XNode* pNode )
else if( pAttr->m_sName == "BaseZoomZ" ) SetBaseZoomZ( strtof( pAttr->m_sValue, NULL ) );
else if( EndsWith(pAttr->m_sName,"Command") )
{
CString sKeyName = pAttr->m_sName; /* "OnCommand" */
CString sValue = pAttr->m_sValue;
const CString &sKeyName = pAttr->m_sName; /* "OnCommand" */
const CString &sValue = pAttr->m_sValue;
apActorCommands apac( new ActorCommands( sValue ) );
CString sCmdName = sKeyName.Left( sKeyName.size()-7 );