mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 02:25:53 +00:00
committed by
Nik Bougalis
parent
4ff0f482c3
commit
c699864c85
@@ -74,7 +74,8 @@ SHAMap::snapShot (bool isMutable) const
|
||||
newMap.root_ = root_;
|
||||
newMap.backed_ = backed_;
|
||||
|
||||
if ((state_ != SHAMapState::Immutable) || !isMutable)
|
||||
if ((state_ != SHAMapState::Immutable) ||
|
||||
(newMap.state_ != SHAMapState::Immutable))
|
||||
{
|
||||
// If either map may change, they cannot share nodes
|
||||
newMap.unshare ();
|
||||
|
||||
Reference in New Issue
Block a user