Fixes Instance database converter

* Fixes the output of AdditionalMaps to not print as a sequence.
Thanks to @Atemo!
This commit is contained in:
aleos 2020-04-09 16:13:17 -04:00
parent 1f63265a3b
commit 9db44eca7d

View File

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