Decompile fn_18018 (CTownInfoMgr::GetTownInfo)
Batch #15549 by Yommy: 1 byte-identical, 0 confirmed by peer review. - fn_18018 CTownInfoMgr::GetTownInfo: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
77323e32a0
commit
28bbe57e21
1 changed files with 7 additions and 3 deletions
|
|
@ -140,11 +140,15 @@ TownInfo CTownInfoMgr::GetTownInfo(std::string mapName, unsigned int index) {
|
|||
}
|
||||
|
||||
std::map<std::string, std::vector<TownInfo>>::iterator it = this->m_towns.find(key);
|
||||
if (it != this->m_towns.end() && index < it->second.size()) {
|
||||
return it->second[index];
|
||||
if (it == this->m_towns.end()) {
|
||||
return TownInfo();
|
||||
}
|
||||
|
||||
return TownInfo();
|
||||
if (index >= it->second.size()) {
|
||||
return TownInfo();
|
||||
}
|
||||
|
||||
return it->second[index];
|
||||
}
|
||||
|
||||
// OFFSET: 0x00AE33A0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue