1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-07-05 10:11:35 +00:00
This commit is contained in:
Sebastian Fieber 2025-01-12 17:42:03 +01:00
parent 8de0ccc82c
commit 4ede868ed2

View file

@ -53,7 +53,7 @@ namespace
cell = cellOrName.as<MWLua::GCell>().mStore->getCell();
else if (cellOrName.is<std::string_view>() && !cellOrName.as<std::string_view>().empty())
cell = MWBase::Environment::get().getWorldModel()->getCell(cellOrName.as<std::string_view>()).getCell();
if (cell = nullptr)
if (cell == nullptr)
throw std::runtime_error("Invalid cell");
else if (!cell->isExterior())
throw std::runtime_error("Cell cannot be interior");