mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-12-24 21:53:06 +00:00
Update the watched Ptr when changing it
This commit is contained in:
parent
39af9a13fa
commit
33c173a23a
1 changed files with 3 additions and 0 deletions
|
|
@ -188,6 +188,9 @@ namespace MWMechanics
|
||||||
|
|
||||||
void MechanicsManager::updateCell(const MWWorld::Ptr &old, const MWWorld::Ptr &ptr)
|
void MechanicsManager::updateCell(const MWWorld::Ptr &old, const MWWorld::Ptr &ptr)
|
||||||
{
|
{
|
||||||
|
if(old == mWatched)
|
||||||
|
mWatched = ptr;
|
||||||
|
|
||||||
if(MWWorld::Class::get(ptr).isActor())
|
if(MWWorld::Class::get(ptr).isActor())
|
||||||
mActors.updateActor(old, ptr);
|
mActors.updateActor(old, ptr);
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue