mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
Fix C4456 msvc warning
declaration of 'it' hides previous local declaration
This commit is contained in:
parent
8544aa481c
commit
5891d58f63
@ -128,11 +128,11 @@ void ConfigurationManager::readConfiguration(bpo::variables_map& variables,
|
||||
auto composingVariables = separateComposingVariables(variables, description);
|
||||
for (auto& [k, v] : *it)
|
||||
{
|
||||
auto it = variables.find(k);
|
||||
if (it == variables.end())
|
||||
auto variable = variables.find(k);
|
||||
if (variable == variables.end())
|
||||
variables.insert({k, v});
|
||||
else if (it->second.defaulted())
|
||||
it->second = v;
|
||||
else if (variable->second.defaulted())
|
||||
variable->second = v;
|
||||
}
|
||||
mergeComposingVariables(variables, composingVariables, description);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user