Use a reference and add an assert to track a bug

This commit is contained in:
Steve Checkoway
2004-05-31 22:03:01 +00:00
parent bc18ec68ec
commit f50d78d94a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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) );