1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-26 23:40:26 +00:00

Fix global map position

This commit is contained in:
Evil Eye 2023-04-13 17:44:23 +02:00
parent 97fb06d8c9
commit 2deff337d8

View file

@ -3298,7 +3298,7 @@ namespace MWWorld
if (!ref.mRef.getTeleport()) if (!ref.mRef.getTeleport())
continue; continue;
if (ref.mRef.getDestCell().empty()) if (ref.mRef.getDestCell().is<ESM::ESM3ExteriorCellRefId>())
{ {
ESM::Position pos = ref.mRef.getDoorDest(); ESM::Position pos = ref.mRef.getDoorDest();
result = pos.asVec3(); result = pos.asVec3();