From 4ede868ed2c5380fb5ec7991162a509ca4ed4d8a Mon Sep 17 00:00:00 2001 From: Sebastian Fieber Date: Sun, 12 Jan 2025 17:42:03 +0100 Subject: [PATCH] fix typo --- apps/openmw/mwlua/landbindings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwlua/landbindings.cpp b/apps/openmw/mwlua/landbindings.cpp index 996d749c3b..2f99efcc85 100644 --- a/apps/openmw/mwlua/landbindings.cpp +++ b/apps/openmw/mwlua/landbindings.cpp @@ -53,7 +53,7 @@ namespace cell = cellOrName.as().mStore->getCell(); else if (cellOrName.is() && !cellOrName.as().empty()) cell = MWBase::Environment::get().getWorldModel()->getCell(cellOrName.as()).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");