This commit is contained in:
Glenn Maynard
2006-10-20 00:22:16 +00:00
parent cd3f228338
commit f2e89da415
3 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -60,8 +60,7 @@ void WheelBase::Load( RString sType )
ActorUtil::LoadAllCommands( *pTempl, m_sName );
for( int i=0; i<NUM_WHEEL_ITEMS; i++ )
{
Actor *pActor = pTempl->Copy();
WheelItemBase *pItem = dynamic_cast<WheelItemBase *>( pActor ); // XXX: ugly cast
WheelItemBase *pItem = pTempl->Copy();
DEBUG_ASSERT( pItem );
m_WheelBaseItems.push_back( pItem );
}