diff --git a/src/pc/mods/mod_cache.c b/src/pc/mods/mod_cache.c index 9449bc39c..26671d85b 100644 --- a/src/pc/mods/mod_cache.c +++ b/src/pc/mods/mod_cache.c @@ -211,7 +211,7 @@ void mod_cache_add(struct Mod* mod, struct ModFile* file) { // hash and cache mod_cache_md5(file->cachedPath, file->dataHash); - mod_cache_add_internal(file->dataHash, 0, file->cachedPath); + mod_cache_add_internal(file->dataHash, 0, strdup(file->cachedPath)); } void mod_cache_load(void) {