mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-05 15:55:45 +00:00
Reset RefNum when copying a reference to a new cell
This commit is contained in:
parent
267cf4e140
commit
fde6cad24b
@ -358,7 +358,7 @@ namespace MWWorld
|
||||
Class::copyToCell(const Ptr &ptr, CellStore &cell) const
|
||||
{
|
||||
Ptr newPtr = copyToCellImpl(ptr, cell);
|
||||
|
||||
newPtr.getCellRef().unsetRefNum(); // This RefNum is only valid within the original cell of the reference
|
||||
return newPtr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user