Skip to content

Commit 6481022

Browse files
committed
revert
1 parent fb78fc7 commit 6481022

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gframe/duelclient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

gframe/netserver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)