mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-20 10:00:20 -04:00
fix typo
This commit is contained in:
parent
8de0ccc82c
commit
4ede868ed2
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user