From 1a0b3f20f773e90e82ba539a2a9c50064d6482f8 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 30 May 2005 21:09:48 +0000 Subject: [PATCH] Function pointer. --- stepmania/src/ActorUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 419a534a55..09d16ba0fb 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -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" ||