mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 05:28:41 +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);
|
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) {
|
if (enabled && currentlyDisabled) {
|
||||||
QStringList bakedMappings{ bakedMapping };
|
QStringList bakedMappings{ bakedMapping };
|
||||||
|
|
Loading…
Reference in a new issue