From 29a8a76586bfe844b837d3cf7b8e3b38ae975b0d Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:58:47 -0500 Subject: [PATCH] Fix [CS] auto category --- src/pc/mods/mod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }