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:
parent
3f678c3b0a
commit
502e4ad892
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user