mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-14 01:19:59 +00:00
Update the watched Ptr when changing it
This commit is contained in:
parent
39af9a13fa
commit
33c173a23a
@ -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…
x
Reference in New Issue
Block a user