Use a reference and add an assert to track a bug
This commit is contained in:
@@ -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.player < NUM_PLAYERS, ssprintf("P%i", StyleI.player) );
|
||||||
ASSERT_M( StyleI.col < MAX_COLS_PER_PLAYER, ssprintf("C%i", StyleI.col) );
|
ASSERT_M( StyleI.col < MAX_COLS_PER_PLAYER, ssprintf("C%i", StyleI.col) );
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ public:
|
|||||||
ColumnInfo m_ColumnInfo[NUM_PLAYERS][MAX_COLS_PER_PLAYER]; // maps each players' column to a track in the NoteData
|
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];
|
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;
|
StyleInput GameInputToStyleInput( const GameInput &GameI ) const;
|
||||||
|
|
||||||
PlayerNumber ControllerToPlayerNumber( GameController controller ) const;
|
PlayerNumber ControllerToPlayerNumber( GameController controller ) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user