summaryrefslogtreecommitdiff
path: root/src/owner_type.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2019-02-15 19:20:25 +0100
committerBardur Arantsson <bardur@scientician.net>2019-02-15 19:20:25 +0100
commit29a14fd37f222a0fb47effbabe4b3c3f52bad75a (patch)
tree451791bdbe56bd8d8334bfd48e73f0494c1cbc4f /src/owner_type.hpp
parent5286cd001b32a383e4c0f37ee76eb06f1672295c (diff)
Use std::array<> and bool
Diffstat (limited to 'src/owner_type.hpp')
-rw-r--r--src/owner_type.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/owner_type.hpp b/src/owner_type.hpp
index 4c47dc48..7fac70e8 100644
--- a/src/owner_type.hpp
+++ b/src/owner_type.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include <array>
#include <string>
#include "h-basic.h"
@@ -27,15 +28,15 @@ struct owner_type
/**
* Liked/hated races.
*/
- u32b races[2][2] { };
+ std::array<std::array<u32b, 2>, 2> races { };
/**
* Liked/hated classes
*/
- u32b classes[2][2] { };
+ std::array<std::array<u32b, 2>, 2> classes { };
/**
* Costs for liked people
*/
- s16b costs[3] { };
+ std::array<s16b, 3> costs { };
};