mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-09 22:20:24 +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
-2
@@ -757,8 +757,7 @@ Lua_HateList Lua_Mob::GetHateList() {
|
||||
Lua_Safe_Call_HateList();
|
||||
Lua_HateList ret;
|
||||
|
||||
std::list<tHateEntry*> h_list;
|
||||
self->GetHateList(h_list);
|
||||
auto h_list = self->GetHateList();
|
||||
auto iter = h_list.begin();
|
||||
while(iter != h_list.end()) {
|
||||
tHateEntry *ent = (*iter);
|
||||
|
||||
Reference in New Issue
Block a user