mirror of https://github.com/AxioDL/metaforce.git
CDummyWorld: Fix IGetAreaId
This commit is contained in:
parent
f4ab5e45a1
commit
eb89a17817
|
@ -52,7 +52,7 @@ TAreaId CDummyWorld::IGetAreaId(CAssetId id) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto iter =
|
const auto iter =
|
||||||
std::find_if(x18_areas.cbegin(), x18_areas.cend(), [id](const auto& area) { return area->xc_mrea == id; });
|
std::find_if(x18_areas.cbegin(), x18_areas.cend(), [id](const auto& area) { return area.xc_mrea == id; });
|
||||||
if (iter == x18_areas.cend()) {
|
if (iter == x18_areas.cend()) {
|
||||||
return kInvalidAreaId;
|
return kInvalidAreaId;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue