Simple one to fix.
This commit is contained in:
@@ -7,11 +7,12 @@ REGISTER_SCREEN_CLASS( ScreenUnlockBrowse );
|
|||||||
|
|
||||||
void ScreenUnlockBrowse::Init()
|
void ScreenUnlockBrowse::Init()
|
||||||
{
|
{
|
||||||
|
int index = 0;
|
||||||
// fill m_aGameCommands before calling Init()
|
// fill m_aGameCommands before calling Init()
|
||||||
FOREACH_CONST( UnlockEntry, UNLOCKMAN->m_UnlockEntries, ue )
|
for (UnlockEntry const &ue : UNLOCKMAN->m_UnlockEntries)
|
||||||
{
|
{
|
||||||
GameCommand gc;
|
GameCommand gc;
|
||||||
UnlockEntryStatus st = ue->GetUnlockEntryStatus();
|
UnlockEntryStatus st = ue.GetUnlockEntryStatus();
|
||||||
switch( st )
|
switch( st )
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
@@ -23,7 +24,7 @@ void ScreenUnlockBrowse::Init()
|
|||||||
case UnlockEntryStatus_RequrementsNotMet:
|
case UnlockEntryStatus_RequrementsNotMet:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
gc.m_iIndex = ue - UNLOCKMAN->m_UnlockEntries.begin();
|
gc.m_iIndex = index++;
|
||||||
// gc.m_sUnlockEntryID = ue->m_sEntryID;
|
// gc.m_sUnlockEntryID = ue->m_sEntryID;
|
||||||
gc.m_sName = ssprintf("%d",gc.m_iIndex);
|
gc.m_sName = ssprintf("%d",gc.m_iIndex);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user