mirror of
https://github.com/OpenMW/openmw.git
synced 2025-07-05 10:11:35 +00:00
fix typo
This commit is contained in:
parent
8de0ccc82c
commit
4ede868ed2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue