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

Fix gameObject.teleport function, previously would not work with items in inventories

This commit is contained in:
Zackhasacat 2023-04-27 19:37:38 +00:00 committed by Petr Mikheev
parent c752c8950f
commit c4246159af

View File

@ -357,7 +357,7 @@ namespace MWLua
[cell, pos, rot] { teleportPlayer(cell, pos, rot); });
else
context.mLuaManager->addAction(
[object, cell, pos, rot] { teleportNotPlayer(object.ptr(), cell, pos, rot); },
[obj = Object(ptr), cell, pos, rot] { teleportNotPlayer(obj.ptr(), cell, pos, rot); },
"TeleportAction");
};
}