diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:13 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:13 +0200 |
commit | f1898380237c975d07cf98bb25a882085f1e3b95 (patch) | |
tree | 93892b86794fc9d1a8c37912ce4daccda4dd1ce1 /src/init1.cc | |
parent | a303c1a21930025c4f5ec086733f5d936d54f326 (diff) |
Change meta_class_type::classes to std::vector
Diffstat (limited to 'src/init1.cc')
-rw-r--r-- | src/init1.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/init1.cc b/src/init1.cc index ed173481..05a4f857 100644 --- a/src/init1.cc +++ b/src/init1.cc @@ -2039,8 +2039,6 @@ errr init_player_info_txt(FILE *fp) /* Append chars to the name */ strcpy(mc_ptr->name, s + 2); mc_ptr->color = color_char_to_attr(s[0]); - for (powers = 0; powers < max_c_idx; powers++) - mc_ptr->classes[powers] = -1; powers = 0; /* Next... */ @@ -2066,7 +2064,7 @@ errr init_player_info_txt(FILE *fp) if (i == max_c_idx) return (6); - mc_ptr->classes[powers++] = i; + mc_ptr->classes.push_back(i); /* Next... */ continue; |