mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-31 19:20:26 +00:00
Remove check in cellstore.cpp that causes Lua teleport command to fail.
This commit is contained in:
parent
0270cfb733
commit
270ead937b
@ -443,10 +443,6 @@ namespace MWWorld
|
||||
throw std::runtime_error(
|
||||
"moveTo: can't move object from a non-loaded cell (how did you get this object anyway?)");
|
||||
|
||||
// Ensure that the object actually exists in the cell
|
||||
if (searchViaRefNum(object.getCellRef().getRefNum()).isEmpty())
|
||||
throw std::runtime_error("moveTo: object is not in this cell");
|
||||
|
||||
MWBase::Environment::get().getWorldModel()->registerPtr(MWWorld::Ptr(object.getBase(), cellToMoveTo));
|
||||
|
||||
MovedRefTracker::iterator found = mMovedHere.find(object.getBase());
|
||||
|
Loading…
x
Reference in New Issue
Block a user