mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 16:20:21 +00:00
Revert "Fix reference cell movement leaving behind deleted Ptrs for script access"
This reverts commit 666248618eb2e4ca2003f51a5dbc1891baa98998.
This commit is contained in:
parent
900745f577
commit
58807064b4
@ -1206,10 +1206,6 @@ namespace MWWorld
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
ptr.getRefData().setCount(0);
|
ptr.getRefData().setCount(0);
|
||||||
// Deleted references can still be accessed by scripts,
|
|
||||||
// so we need this extra step to remove access to the old reference completely.
|
|
||||||
// This will no longer be necessary once we have a proper cell movement tracker.
|
|
||||||
ptr.getCellRef().unsetRefNum();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (haveToMove && ptr.getRefData().getBaseNode())
|
if (haveToMove && ptr.getRefData().getBaseNode())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user