mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-04 14:36:37 +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:
+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