summaryrefslogtreecommitdiff
path: root/src/resources/itemdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-04 03:07:26 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-04 03:41:46 +0300
commit4b2cb3433c82ba4ba28be8de82e0a49df7f3e388 (patch)
tree60f063d56d0aa316cfee4c1e1340b69cc992ede1 /src/resources/itemdb.cpp
parentd5eb424dcd214b4646a960e04b9271e70b096856 (diff)
downloadplus-4b2cb3433c82ba4ba28be8de82e0a49df7f3e388.tar.gz
plus-4b2cb3433c82ba4ba28be8de82e0a49df7f3e388.tar.bz2
plus-4b2cb3433c82ba4ba28be8de82e0a49df7f3e388.tar.xz
plus-4b2cb3433c82ba4ba28be8de82e0a49df7f3e388.zip
Replace some lists to vectors.
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r--src/resources/itemdb.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index b4e33dfa7..1260fab58 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -65,9 +65,9 @@ static char const *const fields[][2] =
{ "mp", N_("MP %+d") }
};
-static std::list<ItemDB::Stat> extraStats;
+static std::vector<ItemDB::Stat> extraStats;
-void ItemDB::setStatsList(const std::list<ItemDB::Stat> &stats)
+void ItemDB::setStatsList(const std::vector<ItemDB::Stat> &stats)
{
extraStats = stats;
}
@@ -307,7 +307,7 @@ void ItemDB::load()
effect += " / ";
effect += strprintf(gettext(fields[i][1]), value);
}
- for (std::list<Stat>::iterator it = extraStats.begin();
+ for (std::vector<Stat>::iterator it = extraStats.begin();
it != extraStats.end(); ++it)
{
int value = XML::getProperty(node, it->tag.c_str(), 0);