mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-19 16:39:41 +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)
|
||||
{
|
||||
if(old == mWatched)
|
||||
mWatched = ptr;
|
||||
|
||||
if(MWWorld::Class::get(ptr).isActor())
|
||||
mActors.updateActor(old, ptr);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue