From f6e3562e73de9ea69b0eae265522a1983bf00e7a Mon Sep 17 00:00:00 2001 From: maybegreat48 <96936658+maybegreat48@users.noreply.github.com> Date: Sun, 7 Jul 2024 19:07:10 +0000 Subject: [PATCH] Fix for CEventInventoryItemPickUp (#22) * feat(event): add CEventInventoryItemPickedUp * fix: CEvent should not be abstract --------- Co-authored-by: maybegreat48 --- event/CEvent.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/event/CEvent.hpp b/event/CEvent.hpp index 2f12e60..1bf7408 100644 --- a/event/CEvent.hpp +++ b/event/CEvent.hpp @@ -4,13 +4,13 @@ class CEvent { public: virtual ~CEvent() = default; - virtual CEvent* Clone() = 0; - virtual bool operator==(CEvent& other) = 0; - virtual int _0x18() = 0; - virtual float _0x20() = 0; - virtual float _0x28() = 0; - virtual bool IsEventScriptCommand() = 0; - virtual bool ExtractData(void* data, int size) = 0; + virtual CEvent* Clone() { return nullptr; } + virtual bool operator==(CEvent& other) { return false; } + virtual int _0x18() { return 0; } + virtual float _0x20() { return 0.0f; } + virtual float _0x28() { return 0.0f; } + virtual bool IsEventScriptCommand() { return false; } + virtual bool ExtractData(void* data, int size) { return false; } char m_pad[0x58]; };