Fix some missing initializers

Spotted by @fosnola
This commit is contained in:
2023-01-18 21:16:05 -05:00
parent 04d079fbaf
commit 1bf079af5e
3 changed files with 3 additions and 2 deletions

View File

@@ -14,6 +14,7 @@
#include <vector>
#include <cstddef>
// TODO: insert_row, insert_col
template<typename Type, typename Alloc = std::allocator<Type>> class vector2d {
friend class row_ref;
friend class col_ref;

View File

@@ -23,7 +23,7 @@ public:
eAttitude attitude;
location cur_loc;
short summon_time = 0;
bool party_summoned;
bool party_summoned = false;
short target = 6;
location targ_loc;
short health = 0;

View File

@@ -31,7 +31,7 @@ public:
void clear() {dudes.clear();}
cCreature& operator[](size_t n);
const cCreature& operator[](size_t n) const;
cPopulation() : which_town(200) {}
cPopulation() : which_town(200), hostile(false) {}
std::vector<cCreature>::iterator begin() {return dudes.begin();}
std::vector<cCreature>::iterator end() {return dudes.end();}
// Apparently Visual Studio needs this to work