From 8586d1dcb8676e04aed1398fc475a3b101b44d47 Mon Sep 17 00:00:00 2001 From: Belonit <54427022+Belonit@users.noreply.github.com> Date: Mon, 21 Nov 2022 12:16:34 +0300 Subject: [PATCH] Update PacketClass.h - Fixed incorrect template --- PacketClass.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/PacketClass.h b/PacketClass.h index 1a49ef1d..9c9da64a 100644 --- a/PacketClass.h +++ b/PacketClass.h @@ -6,6 +6,8 @@ class FieldClass { public: + FieldClass() = default; + FieldClass(char* id, CHAR data) { JMP_THIS(0x4CB580); } @@ -57,10 +59,10 @@ class PacketClass this->Head = pField; } - template - void AddField(TArgs&&... args) + template + void AddField(char* id, T data, Args... args) { - auto pField = GameCreate(std::forward(args)...); + auto pField = GameCreate(id, data, args...); this->AddField(pField); }