mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 22:45:34 +00:00
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
|
||||
{
|
||||
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 a new issue