diff --git a/src/pc/network/packets/packet_area.c b/src/pc/network/packets/packet_area.c index 1612180b..583d4b37 100644 --- a/src/pc/network/packets/packet_area.c +++ b/src/pc/network/packets/packet_area.c @@ -66,7 +66,7 @@ void network_send_area(struct NetworkPlayer* toNp) { } // count respawners and write - u8 respawnerCount = 0; + u16 respawnerCount = 0; for (struct SyncObject* so = sync_object_get_first(); so != NULL; so = sync_object_get_next()) { if (so->o != NULL && so->o->behavior == smlua_override_behavior(bhvRespawner)) { @@ -74,7 +74,7 @@ void network_send_area(struct NetworkPlayer* toNp) { } } - packet_write(&p, &respawnerCount, sizeof(u8)); + packet_write(&p, &respawnerCount, sizeof(u16)); // write respawners for (struct SyncObject* so = sync_object_get_first(); so != NULL; so = sync_object_get_next()) { @@ -194,8 +194,8 @@ void network_receive_area(struct Packet* p) { } // read respawner count - u8 respawnerCount = 0; - packet_read(p, &respawnerCount, sizeof(u8)); + u16 respawnerCount = 0; + packet_read(p, &respawnerCount, sizeof(u16)); // read respawners for (s32 i = 0; i < respawnerCount; i++) { diff --git a/src/pc/network/packets/packet_reservation_list.c b/src/pc/network/packets/packet_reservation_list.c index 6c5185a0..b9a86173 100644 --- a/src/pc/network/packets/packet_reservation_list.c +++ b/src/pc/network/packets/packet_reservation_list.c @@ -33,7 +33,7 @@ void network_receive_reservation_list(struct Packet* p) { SOFT_ASSERT(gNetworkType == NT_CLIENT); LOG_INFO("rx reservation list"); - u8 courseNum, actNum, levelNum, areaIndex; + s16 courseNum, actNum, levelNum, areaIndex; packet_read(p, &courseNum, sizeof(s16)); packet_read(p, &actNum, sizeof(s16)); packet_read(p, &levelNum, sizeof(s16));