mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
Do not make target reference unavailable on cell change (bug #3898)
This commit is contained in:
parent
af9db74010
commit
b3b7d6aa9f
@ -20,9 +20,8 @@ namespace MWGui
|
||||
{
|
||||
MWWorld::CellStore* playerCell = MWMechanics::getPlayer().getCell();
|
||||
|
||||
// check if player has changed cell, or count of the reference has become 0
|
||||
if ((playerCell != mCurrentPlayerCell && mCurrentPlayerCell != NULL)
|
||||
|| (!mPtr.isEmpty() && mPtr.getRefData().getCount() == 0))
|
||||
// check if count of the reference has become 0
|
||||
if (!mPtr.isEmpty() && mPtr.getRefData().getCount() == 0)
|
||||
{
|
||||
if (!mPtr.isEmpty())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user