don't save empty wild encounter field groups

This commit is contained in:
garak 2019-10-14 13:15:18 -04:00 committed by huderlem
parent da59c82b7d
commit 6324980a8d

View file

@ -560,7 +560,7 @@ void Project::saveWildMonData() {
}
groupsObject[groupName] = subGroupIndices;
}
fieldObject["groups"] = groupsObject;
if (!groupsObject.isEmpty()) fieldObject["groups"] = groupsObject;
fieldsInfoArray.append(fieldObject);
}