Function pointer.

This commit is contained in:
Steve Checkoway
2005-05-30 21:09:48 +00:00
parent b7f5eef4a1
commit 1a0b3f20f7
+2 -2
View File
@@ -46,7 +46,7 @@ Actor* ActorUtil::Create( const CString& sClassName, const CString& sDir, const
ASSERT_M( iter != g_pmapRegistrees->end(), ssprintf("Actor '%s' is not registered.",sClassName.c_str()) )
CreateActorFn pfn = iter->second;
return pfn( sDir, pNode );
return (*pfn)( sDir, pNode );
}
/* Return false to retry. */
@@ -420,7 +420,7 @@ FileType ActorUtil::GetFileType( const CString &sPath )
else if( sExt=="actor" ) return FT_Actor;
/* Do this last, to avoid the IsADirectory in most cases. */
/* Yuck. Some directories end in ".mpg", so do the directory
/* check before the extensions check. */
* check before the extensions check. */
else if( IsADirectory(sPath) ) return FT_Directory;
else if(
sExt=="png" ||