From b7795fd9d1a8b847962e7d8f715da08f8968ba4b Mon Sep 17 00:00:00 2001 From: MysterD Date: Sat, 26 Jun 2021 16:54:43 -0700 Subject: [PATCH] Prevent packet_save_set_flag from looping --- src/pc/network/packets/packet_save_set_flag.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pc/network/packets/packet_save_set_flag.c b/src/pc/network/packets/packet_save_set_flag.c index cd10b2eb..0883e6cb 100644 --- a/src/pc/network/packets/packet_save_set_flag.c +++ b/src/pc/network/packets/packet_save_set_flag.c @@ -17,5 +17,7 @@ void network_send_save_set_flag(u32 flags) { void network_receive_save_set_flag(struct Packet* p) { u32 flags; packet_read(p, &flags, sizeof(u32)); + sIgnoreSendSaveSetFlag = true; save_file_set_flags(flags); + sIgnoreSendSaveSetFlag = false; }