Instance boundary follow-up:
- Stop tools from complaining about leaks. - Also, list -> vector. - Fix an ambiguous constructor warning. - Fix a bug with Gormok and Sindragosa (Fixes #16280).
This commit is contained in:
1 parent
82c0a074b4
commit
b945d01ee5
7 files changed
+37
-11
No files matched your search
@@ -78,7 +78,19 @@ struct BossBoundaryEntry
|
||||
uint32 const bossId;
|
||||
AreaBoundary const* const boundary;
|
||||
};
|
||||
typedef std::list<BossBoundaryEntry> BossBoundaryData;
|
||||
struct BossBoundaryData
|
||||
{
|
||||
typedef std::vector<BossBoundaryEntry> StorageType;
|
||||
typedef StorageType::const_iterator const_iterator;
|
||||
|
||||
BossBoundaryData(std::initializer_list<BossBoundaryEntry> data) : _data(data) { }
|
||||
~BossBoundaryData();
|
||||
const_iterator begin() const { return _data.begin(); }
|
||||
const_iterator end() const { return _data.end(); }
|
||||
|
||||
private:
|
||||
StorageType _data;
|
||||
};
|
||||
|
||||
struct MinionData
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user