Pointers to member functions requires &.

This commit is contained in:
Steve Checkoway
2007-04-24 08:39:08 +00:00
parent ceff45f77b
commit 777e89c0a7
+1 -1
View File
@@ -420,7 +420,7 @@ void ShowWarningOrTrace( const char *file, int line, const char *message, bool b
if( temp )
file = temp + 4;
void (RageLog::*method)(const char *fmt, ...) = bWarning ? RageLog::Warn : RageLog::Trace;
void (RageLog::*method)(const char *fmt, ...) = bWarning ? &RageLog::Warn : &RageLog::Trace;
if( LOG )
(LOG->*method)( "%s:%i: %s", file, line, message );