mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
Merge pull request #1390 from akortunov/referencecheck
Do not make target reference unavailable on cell change
This commit is contained in:
commit
1bdcecc32e
1 changed files with 2 additions and 3 deletions
|
@ -20,9 +20,8 @@ namespace MWGui
|
||||||
{
|
{
|
||||||
MWWorld::CellStore* playerCell = MWMechanics::getPlayer().getCell();
|
MWWorld::CellStore* playerCell = MWMechanics::getPlayer().getCell();
|
||||||
|
|
||||||
// check if player has changed cell, or count of the reference has become 0
|
// check if count of the reference has become 0
|
||||||
if ((playerCell != mCurrentPlayerCell && mCurrentPlayerCell != NULL)
|
if (!mPtr.isEmpty() && mPtr.getRefData().getCount() == 0)
|
||||||
|| (!mPtr.isEmpty() && mPtr.getRefData().getCount() == 0))
|
|
||||||
{
|
{
|
||||||
if (!mPtr.isEmpty())
|
if (!mPtr.isEmpty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue