Skip to content

Commit

Permalink
Update PacketClass.h - Fixed incorrect template
Browse files Browse the repository at this point in the history
  • Loading branch information
Belonit committed Nov 21, 2022
1 parent bbf09e6 commit 8586d1d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions PacketClass.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
class FieldClass
{
public:
FieldClass() = default;

FieldClass(char* id, CHAR data)
{ JMP_THIS(0x4CB580); }

Expand Down Expand Up @@ -57,10 +59,10 @@ class PacketClass
this->Head = pField;
}

template<typename T, typename... TArgs>
void AddField(TArgs&&... args)
template<typename T, typename... Args>
void AddField(char* id, T data, Args... args)
{
auto pField = GameCreate<FieldClass>(std::forward<TArgs>(args)...);
auto pField = GameCreate<FieldClass>(id, data, args...);
this->AddField(pField);
}

Expand Down

0 comments on commit 8586d1d

Please sign in to comment.