summaryrefslogtreecommitdiff
path: root/src/town_type.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:13 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:13 +0200
commita7ead32f2066fe12dd2154800f480247dc6d7c6c (patch)
tree2dd4a6371a8fd50e1be7bc3138da0e531e67738d /src/town_type.hpp
parent9ca81ed64c847db6b5d2a0890e7aea3ac96d92d1 (diff)
Use std::vector for town_type::store
Diffstat (limited to 'src/town_type.hpp')
-rw-r--r--src/town_type.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/town_type.hpp b/src/town_type.hpp
index 7758f7fd..e119968b 100644
--- a/src/town_type.hpp
+++ b/src/town_type.hpp
@@ -3,6 +3,8 @@
#include "h-basic.h"
#include "store_type_fwd.hpp"
+#include <vector>
+
/**
* Town descriptor.
*/
@@ -12,8 +14,7 @@ struct town_type
u32b seed = 0; /* Seed for RNG */
- store_type *store = nullptr; /* The stores [max_st_idx] */
- byte numstores = 0;
+ std::vector<store_type> store; /* The stores [max_st_idx] */
byte flags = 0; /* Town flags */