summaryrefslogtreecommitdiff
path: root/src/store_type.hpp
diff options
context:
space:
mode:
authorManoj Srivastava <srivasta@debian.org>2020-05-23 00:33:19 -0700
committerManoj Srivastava <srivasta@debian.org>2020-05-23 00:33:19 -0700
commitd6b913d3ca2e84b75f3675fd6e9f5246c100cf27 (patch)
tree5fc28b7efc737bf2c79dc7d799e0a6013957fe11 /src/store_type.hpp
parentc42f029316c0c004a795ca170bdb50644a800534 (diff)
parent73a0259be1d44fdb2ab34266ae0ff63f0d8f0b60 (diff)
Merge branch 'master' into dgit/siddebian/2.4.0-ah-1archive/debian/2.4.0-ah-1
Diffstat (limited to 'src/store_type.hpp')
-rw-r--r--src/store_type.hpp21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/store_type.hpp b/src/store_type.hpp
index e3f917ac..5fb4ac7f 100644
--- a/src/store_type.hpp
+++ b/src/store_type.hpp
@@ -1,7 +1,9 @@
#pragma once
#include "h-basic.h"
-#include "object_type.hpp"
+#include "object_type_fwd.hpp"
+
+#include <vector>
/**
* A store, with an owner, various state flags, a current stock
@@ -9,35 +11,30 @@
*/
struct store_type
{
- u16b st_idx;
+ u16b st_idx = 0;
/**
* Owner index
*/
- u16b owner;
+ u16b owner = 0;
/**
* Closed until this turn.
*/
- s32b store_open;
+ s32b store_open = 0;
/**
* Last visited on this turn.
*/
- s32b last_visit;
-
- /**
- * Stock: Number of entries.
- */
- byte stock_num;
+ s32b last_visit = 0;
/**
* Stock: Total size of array
*/
- s16b stock_size;
+ u16b stock_size = 0;
/**
* Stock: Actual stock items
*/
- object_type *stock;
+ std::vector<object_type> stock;
};