1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00

Fix coc to exterior cells

This commit is contained in:
florent.teppe 2023-02-19 17:58:35 +01:00
parent 3f678c3b0a
commit 502e4ad892

View File

@ -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;