Fixed a bug that prevented the mod "knights and dragons" from starting.

This commit is contained in:
wagic.the.homebrew
2011-09-04 13:21:10 +00:00
parent 9378e9fc9a
commit 2d82e22303

View File

@@ -449,12 +449,14 @@ void GameStateMenu::ensureMGuiController()
jq->SetColor(ARGB(abs(255),255,255,255));
mFont = WResourceManager::Instance()->GetWFont(Fonts::OPTION_FONT);
vector<ModRulesOtherMenuItem *>otherItems = gModRules.menu.other;
mGuiController->Add(NEW OtherMenuItem(
otherItems[0]->mActionId,
mFont, otherItems[0]->mDisplayName,
SCREEN_WIDTH - 64, 2,
jq.get(), jq.get(), otherItems[0]->mKey, false
));
if (otherItems.size()) {
mGuiController->Add(NEW OtherMenuItem(
otherItems[0]->mActionId,
mFont, otherItems[0]->mDisplayName,
SCREEN_WIDTH - 64, 2,
jq.get(), jq.get(), otherItems[0]->mKey, false
));
}
}
}
}