diff options
author | Fedja Beader <fedja@protonmail.ch> | 2025-03-30 21:23:33 +0000 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2025-03-30 21:23:33 +0000 |
commit | a99e41b95064f4c4c61591454916542aa6491795 (patch) | |
tree | 1c4934f22e63b9f7a06cd54ddcce20d468fb3d32 | |
parent | 0699a43d5db9612cc66be9bcb3e45ce788771ee0 (diff) | |
download | mv-a99e41b95064f4c4c61591454916542aa6491795.tar.gz mv-a99e41b95064f4c4c61591454916542aa6491795.tar.bz2 mv-a99e41b95064f4c4c61591454916542aa6491795.tar.xz mv-a99e41b95064f4c4c61591454916542aa6491795.zip |
Undefine WRONGPACKETSIZE macro. Even more so as it uses local vars
****
mana/plus!147
-rw-r--r-- | src/logger.h | 3 | ||||
-rw-r--r-- | src/net/messagein.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/logger.h b/src/logger.h index 4632c9bbf..b8c48e429 100644 --- a/src/logger.h +++ b/src/logger.h @@ -59,9 +59,6 @@ PRAGMA48(GCC diagnostic pop) #define UNIMPLEMENTEDPACKETFIELD(field) \ logger->unimplemented(msg.getId(), field) -#define WRONGPACKETSIZE \ - logger->unimplemented(CAST_U32(mId), mLength, mPos) - /** * The Log Class : Useful to write debug or info messages */ diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp index 85430b4f4..0a85a981d 100644 --- a/src/net/messagein.cpp +++ b/src/net/messagein.cpp @@ -75,7 +75,8 @@ MessageIn::~MessageIn() CAST_U32(mId)); logger->log(" planned size: %u", mLength); logger->log(" read size: %u", mPos); - WRONGPACKETSIZE; + + logger->unimplemented(CAST_U32(mId), mLength, mPos); } } else |