Fix some missing initializers
Spotted by @fosnola
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user