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:
ragnarok-clanker 2026-11-10 06:29:52 +00:00
commit 28bbe57e21

View file

@ -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