mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-06 13:12:17 +00:00
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:
1 parent
1f265af1e7
commit
bec6acc01e
5 files changed
+93
-126
No files matched your search
+3
-3
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user