diff --git a/stepmania/src/StyleDef.cpp b/stepmania/src/StyleDef.cpp index 2e4228fbd2..45cafd0862 100644 --- a/stepmania/src/StyleDef.cpp +++ b/stepmania/src/StyleDef.cpp @@ -37,7 +37,7 @@ void StyleDef::GetTransformedNoteDataForStyle( PlayerNumber pn, const NoteData* } -GameInput StyleDef::StyleInputToGameInput( const StyleInput StyleI ) const +GameInput StyleDef::StyleInputToGameInput( const StyleInput& StyleI ) const { ASSERT_M( StyleI.player < NUM_PLAYERS, ssprintf("P%i", StyleI.player) ); ASSERT_M( StyleI.col < MAX_COLS_PER_PLAYER, ssprintf("C%i", StyleI.col) ); diff --git a/stepmania/src/StyleDef.h b/stepmania/src/StyleDef.h index 41722e5f75..ee09bfd2b5 100644 --- a/stepmania/src/StyleDef.h +++ b/stepmania/src/StyleDef.h @@ -50,7 +50,7 @@ public: ColumnInfo m_ColumnInfo[NUM_PLAYERS][MAX_COLS_PER_PLAYER]; // maps each players' column to a track in the NoteData int m_iColumnDrawOrder[MAX_COLS_PER_PLAYER]; - GameInput StyleInputToGameInput( const StyleInput StyleI ) const; + GameInput StyleInputToGameInput( const StyleInput& StyleI ) const; StyleInput GameInputToStyleInput( const GameInput &GameI ) const; PlayerNumber ControllerToPlayerNumber( GameController controller ) const;