From 502e4ad89208345fe0799792c89c2853af6eaa54 Mon Sep 17 00:00:00 2001 From: "florent.teppe" Date: Sun, 19 Feb 2023 17:58:35 +0100 Subject: [PATCH] Fix coc to exterior cells --- apps/openmw/mwworld/worldimp.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index 43070632eb..5e29e50bbb 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -2854,10 +2854,17 @@ namespace MWWorld ESM::RefId World::findCellPosition(std::string_view cellName, ESM::Position& pos) { - ESM::RefId foundCell = findInteriorPosition(cellName, pos); + ESM::RefId foundCell; + try + { + foundCell = findInteriorPosition(cellName, pos); + } + catch (std::exception&) + { + } if (foundCell.empty()) { - return findInteriorPosition(cellName, pos); + return findExteriorPosition(cellName, pos); } return foundCell;