From 27285658c35580898f32c0aa331b0deadbb60a1e Mon Sep 17 00:00:00 2001 From: Rodrigo Alfonso Date: Mon, 26 Aug 2024 03:49:56 -0300 Subject: [PATCH] FIX: Build with LINK_WIRELESS_TWO_PLAYERS_ONLY --- lib/LinkWireless.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/LinkWireless.hpp b/lib/LinkWireless.hpp index 4f2e4d8..3da768f 100644 --- a/lib/LinkWireless.hpp +++ b/lib/LinkWireless.hpp @@ -1467,8 +1467,9 @@ class LinkWireless { header.playerId = playerId; #ifdef LINK_WIRELESS_TWO_PLAYERS_ONLY header.quickData = QUICK_SEND; -#endif +#else header.clientCount = sessionState.playerCount - LINK_WIRELESS_MIN_PLAYERS; +#endif header.dataChecksum = dataChecksum; MessageHeaderSerializer serializer;