Removes unknown values from fill functions.

Indexes will no longer match Ids.
Updated all tests to use char* argv[] instead of char** argv.
This commit is contained in:
2023-04-22 00:38:48 -07:00
parent e8e9904de3
commit 1f45248ccd
20 changed files with 171 additions and 171 deletions

View File

@@ -4,16 +4,16 @@
#include <vector>
namespace SBF {
std::string GetArchetypeLabel(int archetypeId) {
if (archetypeId >= 0 && archetypeId <= kArchetypesCount) {
return kArchetypes[archetypeId];
std::string GetArchetypeLabel(int archetype_id) {
if (archetype_id >= 0 && archetype_id <= kArchetypesCount) {
return kArchetypes[archetype_id];
}
return "";
}
void FillArchetypeLabels(std::vector<std::string>& labels) {
labels.clear();
for (int id = 0; id <= kArchetypesCount; id++) {
for (int id = 1; id <= kArchetypesCount; id++) {
labels.push_back(GetArchetypeLabel(id));
}
}