mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-18 15:16:40 +00:00
Fix coc to exterior cells
This commit is contained in:
parent
3f678c3b0a
commit
502e4ad892
1 changed files with 9 additions and 2 deletions
|
@ -2854,10 +2854,17 @@ namespace MWWorld
|
||||||
|
|
||||||
ESM::RefId World::findCellPosition(std::string_view cellName, ESM::Position& pos)
|
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())
|
if (foundCell.empty())
|
||||||
{
|
{
|
||||||
return findInteriorPosition(cellName, pos);
|
return findExteriorPosition(cellName, pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
return foundCell;
|
return foundCell;
|
||||||
|
|
Loading…
Reference in a new issue