diff --git a/stepmania/src/Steps.cpp b/stepmania/src/Steps.cpp index cbb23c9f22..9a2c49ef19 100644 --- a/stepmania/src/Steps.cpp +++ b/stepmania/src/Steps.cpp @@ -336,14 +336,6 @@ void Steps::CreateBlank( StepsType ntTo ) this->SetNoteData( noteData ); } - -const Steps *Steps::Real() const -{ - ASSERT( this ); - if(parent) return parent; - return this; -} - bool Steps::IsAutogen() const { return parent != NULL; diff --git a/stepmania/src/Steps.h b/stepmania/src/Steps.h index 0f04e8eeb8..eeb5f72cdf 100644 --- a/stepmania/src/Steps.h +++ b/stepmania/src/Steps.h @@ -81,7 +81,7 @@ protected: mutable bool m_bNoteDataIsFilled; mutable RString m_sNoteDataCompressed; - const Steps *Real() const; + inline const Steps *Real() const { return parent ?: this; } RString m_sFilename; bool m_bSavedToDisk; // true if this was loaded from disk or has been saved to disk.