This commit is contained in:
Glenn Maynard
2007-08-12 22:23:17 +00:00
parent 019ca31c0b
commit 4a409d387a
+3 -3
View File
@@ -27,11 +27,11 @@ Trail *TrailID::ToTrail( const Course *p, bool bAllowNull ) const
if( st == StepsType_Invalid || cd == Difficulty_Invalid )
return NULL;
Trail *ret = p->GetTrail( st, cd );
if( !bAllowNull && ret == NULL )
Trail *pRet = p->GetTrail( st, cd );
if( !bAllowNull && pRet == NULL )
RageException::Throw( "%i, %i, \"%s\"", st, cd, p->GetDisplayFullTitle().c_str() );
return ret;
return pRet;
}
XNode* TrailID::CreateNode() const