summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/itemdb.cpp6
-rw-r--r--src/resources/itemdb.h2
2 files changed, 4 insertions, 4 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);
diff --git a/src/resources/itemdb.h b/src/resources/itemdb.h
index 8c90e6769..ee16a6355 100644
--- a/src/resources/itemdb.h
+++ b/src/resources/itemdb.h
@@ -77,7 +77,7 @@ namespace ItemDB
std::string format;
};
- void setStatsList(const std::list<Stat> &stats);
+ void setStatsList(const std::vector<Stat> &stats);
}