From 9149367f86ccc711c7783183babc57308f631b73 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Tue, 1 Oct 2019 19:53:25 +0300 Subject: Fix CPickup --- src/control/Pickups.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/control/Pickups.h') diff --git a/src/control/Pickups.h b/src/control/Pickups.h index 8c2014d6..5b51a52a 100644 --- a/src/control/Pickups.h +++ b/src/control/Pickups.h @@ -1,7 +1,7 @@ #pragma once #include "Weapon.h" -enum ePickupType +enum ePickupType : uint8 { PICKUP_NONE = 0, PICKUP_IN_SHOP = 1, @@ -25,7 +25,8 @@ class CObject; class CPickup { - ePickupType m_eType; + ePickupType m_eType; + bool m_bRemoved; uint16 m_wQuantity; CObject *m_pObject; uint32 m_nTimer; @@ -34,6 +35,8 @@ class CPickup CVector m_vecPos; }; +static_assert(sizeof(CPickup) == 0x1C, "CPickup: error"); + class CPickups { public: -- cgit v1.2.3