mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
fix iterator find from merge
This commit is contained in:
parent
1508edb459
commit
e4de869db6
1 changed files with 2 additions and 1 deletions
|
@ -1342,7 +1342,8 @@ bool AssetServer::setBakingEnabled(const AssetPathList& paths, bool enabled) {
|
|||
|
||||
auto bakedMapping = getBakeMapping(hash, bakedFilename);
|
||||
|
||||
bool currentlyDisabled = (_fileMappings.value(bakedMapping) == hash);
|
||||
auto it = _fileMappings.find(bakedMapping);
|
||||
bool currentlyDisabled = (it != _fileMappings.end() && it->second == hash);
|
||||
|
||||
if (enabled && currentlyDisabled) {
|
||||
QStringList bakedMappings{ bakedMapping };
|
||||
|
|
Loading…
Reference in a new issue