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.col < MAX_COLS_PER_PLAYER, ssprintf("C%i", StyleI.col) );
|
||||
|
||||
Reference in New Issue
Block a user