mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Fix gameObject.teleport function, previously would not work with items in inventories
This commit is contained in:
parent
c752c8950f
commit
c4246159af
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ namespace MWLua
|
||||||
[cell, pos, rot] { teleportPlayer(cell, pos, rot); });
|
[cell, pos, rot] { teleportPlayer(cell, pos, rot); });
|
||||||
else
|
else
|
||||||
context.mLuaManager->addAction(
|
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");
|
"TeleportAction");
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue