From 9db44eca7d78c57b8073af6b4d72832b85299c60 Mon Sep 17 00:00:00 2001 From: aleos Date: Thu, 9 Apr 2020 16:13:17 -0400 Subject: [PATCH] Fixes Instance database converter * Fixes the output of AdditionalMaps to not print as a sequence. Thanks to @Atemo! --- src/tool/csv2yaml.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tool/csv2yaml.cpp b/src/tool/csv2yaml.cpp index f4b9d9f96e..93036d99f4 100644 --- a/src/tool/csv2yaml.cpp +++ b/src/tool/csv2yaml.cpp @@ -2569,7 +2569,7 @@ static bool instance_readdb_sub(char* str[], int columns, int current) { if (columns > 7) { body << YAML::Key << "AdditionalMaps"; - body << YAML::BeginSeq; + body << YAML::BeginMap; for (int i = 7; i < columns; i++) { if (!strlen(str[i])) @@ -2578,12 +2578,10 @@ static bool instance_readdb_sub(char* str[], int columns, int current) { if (strcmpi(str[4], str[i]) == 0) continue; - body << YAML::BeginMap; body << YAML::Key << str[i] << YAML::Value << "true"; - body << YAML::EndMap; } - body << YAML::EndSeq; + body << YAML::EndMap; } body << YAML::EndMap;