From a7a439993f31d639c4f46fd037a01baa0a0a8aa1 Mon Sep 17 00:00:00 2001 From: PeachyPeach <72323920+PeachyPeachSM64@users.noreply.github.com> Date: Thu, 27 Jun 2024 00:36:13 +0200 Subject: [PATCH] Fix crash in mods_clear (#79) --- src/pc/mods/mods.c | 2 +- src/pc/network/packets/packet_mod_list.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pc/mods/mods.c b/src/pc/mods/mods.c index 0953ebc4..0376b1ac 100644 --- a/src/pc/mods/mods.c +++ b/src/pc/mods/mods.c @@ -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); } diff --git a/src/pc/network/packets/packet_mod_list.c b/src/pc/network/packets/packet_mod_list.c index 188a7182..2a4a7baf 100644 --- a/src/pc/network/packets/packet_mod_list.c +++ b/src/pc/network/packets/packet_mod_list.c @@ -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!");