Fix assertion failure in MP Create

This commit is contained in:
Celtic Minstrel 2016-08-24 17:11:00 -04:00
parent a0350198c3
commit 970c6ee914

View file

@ -458,7 +458,7 @@ void tmp_create_game::display_games_of_type(twindow& window, ng::level::TYPE typ
if(!level.empty()) {
int level_index = create_engine_.find_level_by_id(level);
if(level_index >= 0) {
if(level_index >= 0 && size_t(level_index) < list.get_item_count()) {
list.select_row(level_index);
}
}