From 4dde3d4cfeac6873efb26f96a53133d7c7b6d482 Mon Sep 17 00:00:00 2001 From: MysterD Date: Mon, 6 Jun 2022 20:41:46 -0700 Subject: [PATCH] Whoops --- src/pc/network/packets/packet_area.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pc/network/packets/packet_area.c b/src/pc/network/packets/packet_area.c index a1b975ac8..1612180bf 100644 --- a/src/pc/network/packets/packet_area.c +++ b/src/pc/network/packets/packet_area.c @@ -59,9 +59,9 @@ void network_send_area(struct NetworkPlayer* toNp) { packet_write(&p, &gControlTimerStopNat, sizeof(u32)); // write sync id removals - packet_write(&p, &sRemoveSyncIdsIndex, sizeof(u8)); + packet_write(&p, &sRemoveSyncIdsIndex, sizeof(u32)); for (u32 i = 0; i < sRemoveSyncIdsIndex; i++) { - packet_write(&p, &sRemoveSyncIds[i], sizeof(u8)); + packet_write(&p, &sRemoveSyncIds[i], sizeof(u32)); LOG_INFO("tx remove sync id %d", sRemoveSyncIds[i]); } @@ -179,9 +179,9 @@ void network_receive_area(struct Packet* p) { // read removed sync ids area_remove_sync_ids_clear(); - packet_read(p, &sRemoveSyncIdsIndex, sizeof(u8)); + packet_read(p, &sRemoveSyncIdsIndex, sizeof(u32)); for (u32 i = 0; i < sRemoveSyncIdsIndex; i++) { - packet_read(p, &sRemoveSyncIds[i], sizeof(u8)); + packet_read(p, &sRemoveSyncIds[i], sizeof(u32)); struct SyncObject* so = sync_object_get(sRemoveSyncIds[i]); if (!so) { continue; }