VC6 doesn't seem to want to accept default parameter value for templated functions like this. Poor solution: just put in the default in the actual function call.
This commit is contained in:
@@ -861,7 +861,7 @@ int LuaFunc_GetPreference( lua_State *L )
|
||||
REQ_ARG( "GetPreference", 1, string );
|
||||
|
||||
CString sName;
|
||||
LuaHelpers::PopStack( sName );
|
||||
LuaHelpers::PopStack( sName, NULL );
|
||||
|
||||
IPreference *pPref = PREFSMAN->GetPreferenceByName( sName );
|
||||
if( pPref == NULL )
|
||||
|
||||
Reference in New Issue
Block a user