Skip to content

Commit

Permalink
Merge branch 'unsubscribe' into 'master'
Browse files Browse the repository at this point in the history
Deregister the player before loading a new one

See merge request OpenMW/openmw!4018
  • Loading branch information
psi29a committed Apr 16, 2024
2 parents 819aace + 2f6acbd commit e633d2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/openmw/mwworld/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ namespace MWWorld
player.mObject.mEnabled = true;
}

MWBase::Environment::get().getWorldModel()->deregisterLiveCellRef(mPlayer);
mPlayer.load(player.mObject);

for (size_t i = 0; i < mSaveAttributes.size(); ++i)
Expand Down

0 comments on commit e633d2b

Please sign in to comment.