summaryrefslogtreecommitdiff
path: root/src/player_class.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
commit50c916646b647030755673a9a1dc82e192e492d4 (patch)
treeeb9d7a2b5e27be18f7d1905bed262535a18d05e9 /src/player_class.hpp
parent8c538df0f6f481c4ac70bf15d9f49621d21aa821 (diff)
Change player_class::spec to a std::vector<>
Diffstat (limited to 'src/player_class.hpp')
-rw-r--r--src/player_class.hpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/player_class.hpp b/src/player_class.hpp
index 57282e27..9d9991e3 100644
--- a/src/player_class.hpp
+++ b/src/player_class.hpp
@@ -11,11 +11,6 @@
#include "skill_modifiers.hpp"
/**
- * Maximum number of specialties.
- */
-constexpr int MAX_SPEC = 20;
-
-/**
* Player descriptor and runtime data.
*/
struct player_class
@@ -49,7 +44,7 @@ struct player_class
u32b gods = 0;
- std::array<player_spec, MAX_SPEC> spec;
+ std::vector<player_spec> spec;
std::vector<player_race_ability_type> abilities; /* Abilities to be gained by level; ignores prereqs */
};