summaryrefslogtreecommitdiff
path: root/src/net/manaserv/attributes.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-24 22:10:02 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-24 22:10:02 +0100
commitd055bee5e6b45737ab89b3f8c70c6d0db7a22eb3 (patch)
tree081556c8fa27ce16372b1657e469ccd8587dd4e5 /src/net/manaserv/attributes.cpp
parentf663f5bbb75b850ae22f451a22d112b6c62b2ad6 (diff)
downloadMana-d055bee5e6b45737ab89b3f8c70c6d0db7a22eb3.tar.gz
Mana-d055bee5e6b45737ab89b3f8c70c6d0db7a22eb3.tar.bz2
Mana-d055bee5e6b45737ab89b3f8c70c6d0db7a22eb3.tar.xz
Mana-d055bee5e6b45737ab89b3f8c70c6d0db7a22eb3.zip
Refactored the item loading in a more extensible and per protocol way.
This will greatly help into upgrading the need of each protocol separately. This is the first step to a new item and equipment system for manaserv. A subclassing of the EquipmentWindow will be done in the next commit, as requested by Thorbjorn. Reviewed-by: Thorbjorn.
Diffstat (limited to 'src/net/manaserv/attributes.cpp')
-rw-r--r--src/net/manaserv/attributes.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/manaserv/attributes.cpp b/src/net/manaserv/attributes.cpp
index a65dc01f..e57c6278 100644
--- a/src/net/manaserv/attributes.cpp
+++ b/src/net/manaserv/attributes.cpp
@@ -377,14 +377,14 @@ namespace Attributes {
void informItemDB()
{
- std::list<ItemDB::Stat> dbStats;
+ std::list<ItemStat> dbStats;
TagMap::const_iterator it, it_end;
for (it = tags.begin(), it_end = tags.end(); it != it_end; ++it)
- dbStats.push_back(ItemDB::Stat(it->first,
+ dbStats.push_back(ItemStat(it->first,
it->second));
- itemDb->setStatsList(dbStats);
+ setStatsList(dbStats);
}
void informStatusWindow()