Fix crash in mods_clear (#79)
This commit is contained in:
parent
37c62cabeb
commit
a7a439993f
|
@ -350,7 +350,7 @@ void mods_clear(struct Mods* mods) {
|
||||||
void mods_shutdown(void) {
|
void mods_shutdown(void) {
|
||||||
mod_cache_save();
|
mod_cache_save();
|
||||||
mod_cache_shutdown();
|
mod_cache_shutdown();
|
||||||
mods_clear(&gRemoteMods);
|
|
||||||
mods_clear(&gActiveMods);
|
mods_clear(&gActiveMods);
|
||||||
|
mods_clear(&gRemoteMods);
|
||||||
mods_clear(&gLocalMods);
|
mods_clear(&gLocalMods);
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
|
|
||||||
void network_send_mod_list_request(void) {
|
void network_send_mod_list_request(void) {
|
||||||
SOFT_ASSERT(gNetworkType == NT_CLIENT);
|
SOFT_ASSERT(gNetworkType == NT_CLIENT);
|
||||||
mods_clear(&gRemoteMods);
|
|
||||||
mods_clear(&gActiveMods);
|
mods_clear(&gActiveMods);
|
||||||
|
mods_clear(&gRemoteMods);
|
||||||
|
|
||||||
if (!mods_generate_remote_base_path()) {
|
if (!mods_generate_remote_base_path()) {
|
||||||
LOG_ERROR("Failed to generate remote base path!");
|
LOG_ERROR("Failed to generate remote base path!");
|
||||||
|
|
Loading…
Reference in New Issue