diff --git a/apps/openmw/mwworld/worldmodel.cpp b/apps/openmw/mwworld/worldmodel.cpp index 13e73415cc..781b5b7ff6 100644 --- a/apps/openmw/mwworld/worldmodel.cpp +++ b/apps/openmw/mwworld/worldmodel.cpp @@ -233,15 +233,15 @@ const ESM::Cell* MWWorld::WorldModel::getESMCellByName(std::string_view name) // treat "Wilderness" like an empty string static const std::string& defaultName = mStore.get().find("sDefaultCellname")->mValue.getString(); - if (name == defaultName) - cell = mStore.get().searchExtByName(""); + if (Misc::StringUtils::ciEqual(name, defaultName)) + cell = mStore.get().searchExtByName({}); } if (!cell) { // now check for regions for (const ESM::Region& region : mStore.get()) { - if (name == region.mName) + if (Misc::StringUtils::ciEqual(name, region.mName)) { cell = mStore.get().searchExtByRegion(region.mId); break;