mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-20 10:16:42 +00:00
Merge branch 'fix_teleport' into 'master'
Fix gameObject.teleport function, previously would not work with items in inventories See merge request OpenMW/openmw!2984
This commit is contained in:
commit
1387671bbf
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…
Reference in a new issue