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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user