1
This commit is contained in:
parent
4b732218f1
commit
65c8d524a3
@ -342,7 +342,15 @@ namespace mt
|
|||||||
|
|
||||||
const RankMatchConf* Param::GetRankModeConfByRoomType(int room_type)
|
const RankMatchConf* Param::GetRankModeConfByRoomType(int room_type)
|
||||||
{
|
{
|
||||||
return nullptr;
|
if (s_.rank_mode_confs.empty()) {
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
for (auto conf : s_.rank_mode_confs) {
|
||||||
|
if (conf->room_type == room_type) {
|
||||||
|
return conf.get();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return s_.rank_mode_confs.at(s_.rank_mode_confs.size() - 1).get();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user