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); }