diff --git a/stepmania/src/OptionIconRow.cpp b/stepmania/src/OptionIconRow.cpp index 2ff963df87..75727ce986 100644 --- a/stepmania/src/OptionIconRow.cpp +++ b/stepmania/src/OptionIconRow.cpp @@ -5,7 +5,9 @@ #include "GameState.h" #include "RageLog.h" #include "PlayerState.h" +#include "ActorUtil.h" +REGISTER_ACTOR_CLASS( OptionIconRow ) #define SPACING_X THEME->GetMetricF("OptionIconRow","SpacingX") #define SPACING_Y THEME->GetMetricF("OptionIconRow","SpacingY") @@ -13,7 +15,6 @@ OptionIconRow::OptionIconRow() { - m_PlayerNumber = NUM_PLAYERS; for( unsigned i=0; im_pPlayerState[m_PlayerNumber]->m_PlayerOptions.GetString(); + CString sOptions = GAMESTATE->m_pPlayerState[pn]->m_PlayerOptions.GetString(); CStringArray asOptions; split( sOptions, ", ", asOptions, true ); @@ -127,9 +125,9 @@ void OptionIconRow::Refresh() for( unsigned i=0; i