mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-16 22:46:34 +00:00
also for creatures
This commit is contained in:
parent
2df7ded814
commit
86783e8758
1 changed files with 2 additions and 1 deletions
|
@ -871,7 +871,8 @@ namespace MWClass
|
|||
ptr.getRefData().setCustomData(nullptr);
|
||||
|
||||
// Reset to original position
|
||||
MWBase::Environment::get().getWorld()->moveObject(ptr, ptr.getCellRef().getPosition().asVec3());
|
||||
MWBase::Environment::get().getWorld()->moveObject(
|
||||
ptr, ptr.getCell()->getOriginCell(ptr), ptr.getCellRef().getPosition().asVec3());
|
||||
MWBase::Environment::get().getWorld()->rotateObject(
|
||||
ptr, ptr.getCellRef().getPosition().asRotationVec3(), MWBase::RotationFlag_none);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue