Fix [CS] auto category

This commit is contained in:
Agent X 2025-01-06 18:58:47 -05:00
parent f163de224d
commit 29a8a76586

View file

@ -548,7 +548,7 @@ bool mod_load(struct Mods* mods, char* basePath, char* modName) {
}
// set category
if ((mod->category == NULL) && (strlen(mod->name) > 5) && (strncmp(mod->name, "[CS] ", 5) == 0)) {
if (mod->category == NULL && strstr(mod->name, "[CS] ")) {
mod->category = strdup("cs");
}