serialize id with VarInt

This commit is contained in:
2025-02-26 12:23:26 +01:00
parent 03d799e064
commit 59aaf03421
3 changed files with 5 additions and 5 deletions

View File

@@ -117,7 +117,7 @@ template <typename TBase>
class MessageInterfaceWriteIdBase : public TBase {
public:
void Write(DataBuffer& buffer) const {
this->WriteData(this->GetId(), buffer);
buffer << VarInt{this->GetId()};
this->WriteImpl(buffer);
}