Merge branch 'fix_teleport' into 'master'

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

See merge request OpenMW/openmw!2984
cxxopts_mwiniimporter_ci_debug
Petr Mikheev 2 years ago
commit 1387671bbf

@ -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");
};
}

Loading…
Cancel
Save