Config/Layer: Fix accidental cast of RecursiveSection to Section

This commit is contained in:
MerryMage committed 2017-05-09 00:17:00 +01:00
1 parent 7a25dde8df
commit 32d9428171
4 files changed
+14 -14

No files matched your search

@@ -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;