mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-29 04:06:40 +00:00
Fix C4456 msvc warning
declaration of 'it' hides previous local declaration
This commit is contained in:
parent
8544aa481c
commit
5891d58f63
1 changed files with 4 additions and 4 deletions
|
@ -128,11 +128,11 @@ void ConfigurationManager::readConfiguration(bpo::variables_map& variables,
|
||||||
auto composingVariables = separateComposingVariables(variables, description);
|
auto composingVariables = separateComposingVariables(variables, description);
|
||||||
for (auto& [k, v] : *it)
|
for (auto& [k, v] : *it)
|
||||||
{
|
{
|
||||||
auto it = variables.find(k);
|
auto variable = variables.find(k);
|
||||||
if (it == variables.end())
|
if (variable == variables.end())
|
||||||
variables.insert({k, v});
|
variables.insert({k, v});
|
||||||
else if (it->second.defaulted())
|
else if (variable->second.defaulted())
|
||||||
it->second = v;
|
variable->second = v;
|
||||||
}
|
}
|
||||||
mergeComposingVariables(variables, composingVariables, description);
|
mergeComposingVariables(variables, composingVariables, description);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue