branch | noai |
changeset 9664 | c5741021bf59 |
parent 9593 | 012f29f59906 |
child 9820 | 8c116d4c6033 |
--- a/src/ai/api/ai_list.cpp Sun Jul 15 11:28:52 2007 +0000 +++ b/src/ai/api/ai_list.cpp Sun Jul 15 11:45:25 2007 +0000 @@ -1,8 +1,14 @@ #include "ai_list.hpp" -void AIList::AddItem(int32 item) +void AIList::AddItem(int32 item, int32 value) { AIAbstractList::AddItem(item); + this->SetValue(item, value); +} + +void AIList::ChangeItem(int32 item, int32 value) +{ + this->SetValue(item, value); } void AIList::RemoveItem(int32 item)