diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-06-23 00:52:48 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-06-23 00:53:05 +0200 |
commit | b31e77642582a730b11ca80f495172a774fa6783 (patch) | |
tree | 8f2a81b44e0ef7f2c3679abc21122df488350bce /src/town_type.hpp | |
parent | 2190e84bd31c6cb0078df0fd674177989880afee (diff) |
Change town_type to non-POD type
Diffstat (limited to 'src/town_type.hpp')
-rw-r--r-- | src/town_type.hpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/town_type.hpp b/src/town_type.hpp index f8458c60..7758f7fd 100644 --- a/src/town_type.hpp +++ b/src/town_type.hpp @@ -8,14 +8,16 @@ */ struct town_type { - cptr name; - u32b seed; /* Seed for RNG */ - store_type *store; /* The stores [max_st_idx] */ - byte numstores; + cptr name = nullptr; - byte flags; /* Town flags */ - /* Left this for the sake of compatibility */ - bool_ stocked; /* Is the town actualy stocked ? */ + u32b seed = 0; /* Seed for RNG */ - bool_ destroyed; /* Is the town destroyed? */ + store_type *store = nullptr; /* The stores [max_st_idx] */ + byte numstores = 0; + + byte flags = 0; /* Town flags */ + + bool_ stocked = FALSE; /* Is the town actualy stocked ? */ + + bool_ destroyed = FALSE; /* Is the town destroyed? */ }; |