Prevent crash in mod cache

This commit is contained in:
MysterD 2022-08-04 01:11:51 -07:00
parent c214acb33f
commit 8057c9e501

View file

@ -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;
}