diff options
Diffstat (limited to 'src/player_class.hpp')
-rw-r--r-- | src/player_class.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/player_class.hpp b/src/player_class.hpp index 02d0fc11..0d9711bf 100644 --- a/src/player_class.hpp +++ b/src/player_class.hpp @@ -1,7 +1,7 @@ #pragma once #include "body.hpp" -#include "h-basic.h" +#include "h-basic.hpp" #include "object_flag_set.hpp" #include "object_proto.hpp" #include "player_defs.hpp" @@ -11,6 +11,8 @@ #include "player_spec.hpp" #include "skill_modifiers.hpp" +#include <array> + /** * Player descriptor and runtime data. */ @@ -18,7 +20,7 @@ struct player_class { std::string title; /* Type of class */ std::string desc; /* Small desc of the class */ - const char *titles[PY_MAX_LEVEL / 5] { }; /* Titles */ + std::array<std::string, PY_MAX_LEVEL / 5> titles { };/* Titles */ int display_order_idx; /* Display order index; lowest first */ |