don't read the metric before the Actor is given a name
This commit is contained in:
@@ -16,11 +16,11 @@
|
||||
#define DESCRIPTION_MAX_WIDTH THEME->GetMetricF(m_sName,"DescriptionMaxWidth")
|
||||
#define NUM_SHOWN_ITEMS THEME->GetMetricI(m_sName,"NumShownItems")
|
||||
#define CAPITALIZE_DIFFICULTY_NAMES THEME->GetMetric( m_sName,"CapitalizeDifficultyNames" )
|
||||
#define MOVE_COMMAND THEME->GetMetricA(m_sName,"MoveCommand")
|
||||
|
||||
#define MAX_METERS NUM_DIFFICULTIES + MAX_EDITS_PER_SONG
|
||||
|
||||
DifficultyList::DifficultyList() :
|
||||
MOVE_COMMAND("","MoveCommand")
|
||||
DifficultyList::DifficultyList()
|
||||
{
|
||||
m_bShown = true;
|
||||
}
|
||||
@@ -31,8 +31,6 @@ DifficultyList::~DifficultyList()
|
||||
|
||||
void DifficultyList::Load()
|
||||
{
|
||||
MOVE_COMMAND.ChangeGroup(m_sName);
|
||||
|
||||
m_Lines.resize( MAX_METERS );
|
||||
m_CurSong = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user