diff --git a/src/pc/mods/mod.c b/src/pc/mods/mod.c index 5c9a39a0d..3b057f9a7 100644 --- a/src/pc/mods/mod.c +++ b/src/pc/mods/mod.c @@ -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"); }