forked from teamnwah/openmw-tes3coop
Reset RefNum when copying a reference to a new cell
This commit is contained in:
parent
267cf4e140
commit
fde6cad24b
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ namespace MWWorld
|
||||||
Class::copyToCell(const Ptr &ptr, CellStore &cell) const
|
Class::copyToCell(const Ptr &ptr, CellStore &cell) const
|
||||||
{
|
{
|
||||||
Ptr newPtr = copyToCellImpl(ptr, cell);
|
Ptr newPtr = copyToCellImpl(ptr, cell);
|
||||||
|
newPtr.getCellRef().unsetRefNum(); // This RefNum is only valid within the original cell of the reference
|
||||||
return newPtr;
|
return newPtr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue