mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-10-19 11:42:39 +00:00
Prevent crash in mod cache
This commit is contained in:
parent
c214acb33f
commit
8057c9e501
1 changed files with 2 additions and 1 deletions
|
@ -176,9 +176,10 @@ void mod_cache_add_internal(u8* dataHash, u64 lastLoaded, const char* path) {
|
||||||
if (!strcmp(n->path, path)) {
|
if (!strcmp(n->path, path)) {
|
||||||
LOG_INFO("Removing old node: %s", node->path);
|
LOG_INFO("Removing old node: %s", node->path);
|
||||||
mod_cache_remove_node(n, prev);
|
mod_cache_remove_node(n, prev);
|
||||||
|
} else {
|
||||||
|
prev = n;
|
||||||
}
|
}
|
||||||
|
|
||||||
prev = n;
|
|
||||||
n = next;
|
n = next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue