mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 03:45:32 +00:00
Fix composite map being compiled twice
This commit is contained in:
parent
683e625c6c
commit
8a6d909b22
1 changed files with 8 additions and 2 deletions
|
@ -121,8 +121,14 @@ void CompositeMapRenderer::addCompositeMap(CompositeMap* compositeMap, bool imme
|
|||
void CompositeMapRenderer::setImmediate(CompositeMap* compositeMap)
|
||||
{
|
||||
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(mMutex);
|
||||
mImmediateCompileSet.insert(compositeMap);
|
||||
mCompileSet.erase(compositeMap);
|
||||
CompileSet::iterator found = mCompileSet.find(compositeMap);
|
||||
if (found == mCompileSet.end())
|
||||
return;
|
||||
else
|
||||
{
|
||||
mImmediateCompileSet.insert(compositeMap);
|
||||
mCompileSet.erase(found);
|
||||
}
|
||||
}
|
||||
|
||||
CompositeMap::~CompositeMap()
|
||||
|
|
Loading…
Reference in a new issue