File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ class DuelClient {
5555 template <typename ST >
5656 static void SendPacketToServer (unsigned char proto, const ST & st) {
5757 auto p = duel_client_write;
58- if constexpr (sizeof (ST ) > MAX_DATA_SIZE )
58+ if (sizeof (ST ) > MAX_DATA_SIZE )
5959 return ;
6060 buffer_write<uint16_t >(p, (uint16_t )(1 + sizeof (ST )));
6161 buffer_write<uint8_t >(p, proto);
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class NetServer {
4343 template <typename ST >
4444 static void SendPacketToPlayer (DuelPlayer* dp, unsigned char proto, const ST & st) {
4545 auto p = net_server_write;
46- if constexpr (sizeof (ST ) > MAX_DATA_SIZE )
46+ if (sizeof (ST ) > MAX_DATA_SIZE )
4747 return ;
4848 buffer_write<uint16_t >(p, (uint16_t )(1 + sizeof (ST )));
4949 buffer_write<uint8_t >(p, proto);
You can’t perform that action at this time.
0 commit comments