Config/Layer: Fix accidental cast of RecursiveSection to Section

This commit is contained in:
MerryMage
2017-05-09 00:06:59 +01:00
parent 7a25dde8df
commit 32d9428171
4 changed files with 14 additions and 14 deletions

View File

@ -391,10 +391,10 @@ void INIGameConfigLayerLoader::Save(Config::Layer* config_layer)
{
for (const auto& section : system.second)
{
for (const auto& value : section.GetValues())
for (const auto& value : section->GetValues())
{
const auto ini_location =
GetINILocationFromConfig({system.first, section.GetName(), value.first});
GetINILocationFromConfig({system.first, section->GetName(), value.first});
if (ini_location.first.empty() && ini_location.second.empty())
continue;