From 6d9b7262100f79a690a40650b9dfca4ff41f675c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 27 Jun 2005 05:41:43 +0000 Subject: [PATCH] fix compile (leaving warnings alone for now) --- stepmania/src/Course.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index 9ea7de705b..be4b9313e2 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -1279,8 +1279,9 @@ const CourseEntry *Course::FindFixedSong( const Song *pSong ) const { FOREACH_CONST( CourseEntry, m_entries, e ) { - if( e->pSong == pSong ) - return e; + const CourseEntry &entry = *e; + if( entry.pSong == pSong ) + return &entry; } return NULL;