allocate GameCommand as needed

This commit is contained in:
Glenn Maynard
2006-10-01 20:13:27 +00:00
parent ca0f34d5a8
commit a31f76e9ad
4 changed files with 17 additions and 13 deletions
+1 -2
View File
@@ -29,7 +29,6 @@ WheelItemData::WheelItemData( WheelItemType wit, Song* pSong, RString sSectionNa
m_pCourse = pCourse;
}
MusicWheelItem::MusicWheelItem( RString sType ):
WheelItemBase( sType )
{
@@ -254,7 +253,7 @@ void MusicWheelItem::LoadFromWheelItemData( const WheelItemBaseData *pWIBD )
m_sprSectionBar.SetHidden( false );
break;
case TYPE_SORT:
if( pWID->m_Action.m_pm != PlayMode_Invalid )
if( pWID->m_pAction->m_pm != PlayMode_Invalid )
m_sprModeBar.SetHidden( false );
else
m_sprSortBar.SetHidden( false );