summaryrefslogtreecommitdiff
path: root/src/control/Pickups.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-01 19:53:25 +0300
committerSergeanur <s.anureev@yandex.ua>2019-10-01 19:53:25 +0300
commit9149367f86ccc711c7783183babc57308f631b73 (patch)
tree9272a6aa01da4dd060c970ee92759c00137e2a6b /src/control/Pickups.h
parent1f7008ffd3981277231396008cc970a16c210f5c (diff)
Fix CPickup
Diffstat (limited to 'src/control/Pickups.h')
-rw-r--r--src/control/Pickups.h7
1 files changed, 5 insertions, 2 deletions
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: