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
+2 -3
View File
@@ -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())
{