mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +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:
+2
-3
@@ -6510,9 +6510,8 @@ XS(XS_Mob_GetHateList)
|
||||
if(THIS == nullptr)
|
||||
Perl_croak(aTHX_ "THIS is nullptr, avoiding crash.");
|
||||
|
||||
std::list<tHateEntry*> hate_list;
|
||||
THIS->GetHateList(hate_list);
|
||||
std::list<tHateEntry*>::iterator iter = hate_list.begin();
|
||||
auto hate_list = THIS->GetHateList();
|
||||
auto iter = hate_list.begin();
|
||||
|
||||
while(iter != hate_list.end())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user