From f6015be263711b4f565805481cf9b9f2e2b69370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Wed, 3 May 2023 18:17:27 +0200 Subject: [PATCH] Add default parameter for `CPacker::AddString` --- src/engine/shared/packer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/shared/packer.h b/src/engine/shared/packer.h index 2c428a1e3..7b633c417 100644 --- a/src/engine/shared/packer.h +++ b/src/engine/shared/packer.h @@ -20,7 +20,7 @@ private: public: void Reset(); void AddInt(int i); - void AddString(const char *pStr, int Limit); + void AddString(const char *pStr, int Limit = PACKER_BUFFER_SIZE); void AddRaw(const void *pData, int Size); int Size() const { return (int)(m_pCurrent - m_aBuffer); }