equal
deleted
inserted
replaced
326 this->sort_ascending = ascending; |
326 this->sort_ascending = ascending; |
327 } |
327 } |
328 |
328 |
329 void AIAbstractList::AddList(AIAbstractList *list) |
329 void AIAbstractList::AddList(AIAbstractList *list) |
330 { |
330 { |
331 if (this->GetListName() != NULL && list->GetListName() != NULL && strcmp(this->GetListName(), list->GetListName()) != 0) { |
|
332 DEBUG(ai, 0, "WARNING: You are trying to add a list %s to a list which\n", list->GetListName()); |
|
333 DEBUG(ai, 0, " is based on %s. In general, this can't work. Expect fuzzy results!\n", this->GetListName()); |
|
334 } |
|
335 |
|
336 AIAbstractListMap *list_items = &list->items; |
331 AIAbstractListMap *list_items = &list->items; |
337 for (AIAbstractListMap::iterator iter = list_items->begin(); iter != list_items->end(); iter++) { |
332 for (AIAbstractListMap::iterator iter = list_items->begin(); iter != list_items->end(); iter++) { |
338 this->AddItem((*iter).first); |
333 this->AddItem((*iter).first); |
339 this->SetValue((*iter).first, (*iter).second); |
334 this->SetValue((*iter).first, (*iter).second); |
340 } |
335 } |