diff --git a/src/pc/mods/mod_cache.c b/src/pc/mods/mod_cache.c index b270638c..9c35604a 100644 --- a/src/pc/mods/mod_cache.c +++ b/src/pc/mods/mod_cache.c @@ -176,9 +176,10 @@ void mod_cache_add_internal(u8* dataHash, u64 lastLoaded, const char* path) { if (!strcmp(n->path, path)) { LOG_INFO("Removing old node: %s", node->path); mod_cache_remove_node(n, prev); + } else { + prev = n; } - prev = n; n = next; }