mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 18:45:55 +00:00
committed by
Nik Bougalis
parent
4ff0f482c3
commit
c699864c85
@@ -74,7 +74,8 @@ SHAMap::snapShot (bool isMutable) const
|
|||||||
newMap.root_ = root_;
|
newMap.root_ = root_;
|
||||||
newMap.backed_ = backed_;
|
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
|
// If either map may change, they cannot share nodes
|
||||||
newMap.unshare ();
|
newMap.unshare ();
|
||||||
|
|||||||
Reference in New Issue
Block a user