Hatelist will now use a std::list so i can avoid a list copy when exporting it to quests. Cause frankly two copies was absurd

This commit is contained in:
KimLS
2013-05-17 10:48:59 -07:00
parent 1f265af1e7
commit bec6acc01e
5 changed files with 93 additions and 126 deletions
+3 -3
View File
@@ -68,15 +68,15 @@ public:
void PrintToClient(Client *c);
//For accessing the hate list via perl; don't use for anything else
void GetHateList(std::list<tHateEntry*> &h_list);
std::list<tHateEntry*>& GetHateList() { return list; }
//setting owner
void SetOwner(Mob *newOwner) { owner = newOwner; }
protected:
tHateEntry *Find(Mob *ent);
tHateEntry* Find(Mob *ent);
private:
LinkedList<tHateEntry*> list;
std::list<tHateEntry*> list;
Mob *owner;
};