Reloading fixed dictionary when clearing memory

This commit is contained in:
matlabbe
2018-07-12 10:06:02 -04:00
parent 281452434c
commit 4632c7650f
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -336,7 +336,7 @@ void Memory::loadDataFromDb(bool postInitClosingEvents)
}
if(postInitClosingEvents) UEventsManager::post(new RtabmapEventInit(uFormat("Adding word references, done! (%d)", _vwd->getTotalActiveReferences())));
if(_vwd->getUnusedWordsSize())
if(_vwd->getUnusedWordsSize() && _vwd->isIncremental())
{
UWARN("_vwd->getUnusedWordsSize() must be empty... size=%d", _vwd->getUnusedWordsSize());
}