Fix bugs related to Lua commands `obj:teleport` and `obj:moveInto`

Changes:

  1. Fixed bug in worldmodel.cpp: this and this branches never worked because getESMCellByName throws an exception.
  2. Refactoring of teleporting implementation in mwlua/objectbindings.cpp that has allowed to simplify code in worldmodel.cpp.
  3. Fixed bug in implementation of Lua command obj:moveInto: world.createObject(id):moveTo(inventory) produced disabled objects that are visible in inventory, but can not be droped to the ground.

Merge request reports

Loading