Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[sin] fix metadata remove
Signed-off-by: crptec <crptec.fr@gmail.com>
  • Loading branch information
crptec committed Apr 22, 2021
1 parent 586e554 commit a231425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sinovate/infinitynodemeta.cpp
Expand Up @@ -120,7 +120,7 @@ bool CInfinitynodeMeta::Remove(CMetadata &meta)
return true;
} else {
CMetadata m = it->second;
if(m.getMetaID() == meta.getMetaID() && m.getHistoSize() == 1){
if(m.getMetaID() == meta.getMetaID() && m.getHistoSize() == 1 && meta.getMetadataHeight() == m.getMetadataHeight()){
//we have only 1 entry => remove
mapNodeMetadata.erase(meta.getMetaID());
return true;
Expand Down

0 comments on commit a231425

Please sign in to comment.