| @@ -55,9 +55,7 @@ struct MetadataMenu : ListMenu { | |||||
| // Tag list | // Tag list | ||||
| if (!model->tags.empty()) { | if (!model->tags.empty()) { | ||||
| for (ModelTag tag : model->tags) { | for (ModelTag tag : model->tags) { | ||||
| if (0 <= tag && tag < NUM_TAGS) { | |||||
| addChild(construct<MenuLabel>(&MenuEntry::text, gTagNames[tag])); | |||||
| } | |||||
| addChild(construct<MenuLabel>(&MenuEntry::text, gTagNames[tag])); | |||||
| } | } | ||||
| addChild(construct<MenuEntry>()); | addChild(construct<MenuEntry>()); | ||||
| } | } | ||||
| @@ -97,10 +95,8 @@ static bool isModelMatch(Model *model, std::string search) { | |||||
| str += " "; | str += " "; | ||||
| str += model->slug; | str += model->slug; | ||||
| for (ModelTag tag : model->tags) { | for (ModelTag tag : model->tags) { | ||||
| if (0 <= tag && tag < NUM_TAGS) { | |||||
| str += " "; | |||||
| str += gTagNames[tag]; | |||||
| } | |||||
| str += " "; | |||||
| str += gTagNames[tag]; | |||||
| } | } | ||||
| str = tolower(str); | str = tolower(str); | ||||
| search = tolower(search); | search = tolower(search); | ||||