Fix crash in mods_clear (#79)

This commit is contained in:
PeachyPeach 2024-06-27 00:36:13 +02:00 committed by GitHub
parent 37c62cabeb
commit a7a439993f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -350,7 +350,7 @@ void mods_clear(struct Mods* mods) {
void mods_shutdown(void) {
mod_cache_save();
mod_cache_shutdown();
mods_clear(&gRemoteMods);
mods_clear(&gActiveMods);
mods_clear(&gRemoteMods);
mods_clear(&gLocalMods);
}

View File

@ -9,8 +9,8 @@
void network_send_mod_list_request(void) {
SOFT_ASSERT(gNetworkType == NT_CLIENT);
mods_clear(&gRemoteMods);
mods_clear(&gActiveMods);
mods_clear(&gRemoteMods);
if (!mods_generate_remote_base_path()) {
LOG_ERROR("Failed to generate remote base path!");