diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-12 01:02:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-12 01:02:51 +0300 |
commit | 07c62ac076c698cb7d6a4f8ceed616d982421f14 (patch) | |
tree | fe5b5b2115f1287608dd6c6a0850d36fd7760c12 /src/resources/db/weaponsdb.cpp | |
parent | d5a00a320043f5782ebc489285c89943b667e094 (diff) | |
download | manaverse-07c62ac076c698cb7d6a4f8ceed616d982421f14.tar.gz manaverse-07c62ac076c698cb7d6a4f8ceed616d982421f14.tar.bz2 manaverse-07c62ac076c698cb7d6a4f8ceed616d982421f14.tar.xz manaverse-07c62ac076c698cb7d6a4f8ceed616d982421f14.zip |
Add skipError parameter into xmlutils.
Diffstat (limited to 'src/resources/db/weaponsdb.cpp')
-rw-r--r-- | src/resources/db/weaponsdb.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/db/weaponsdb.cpp b/src/resources/db/weaponsdb.cpp index 3b7860ffd..475b5970e 100644 --- a/src/resources/db/weaponsdb.cpp +++ b/src/resources/db/weaponsdb.cpp @@ -34,14 +34,16 @@ namespace bool mLoaded = false; } -static void loadDB(const std::string &name, WeaponsInfos &arr) +static void loadDB(const std::string &name, + WeaponsInfos &arr) { readXmlIntVector(paths.getStringValue("weaponsFile"), "weapons", name, "item", "id", - arr); + arr, + SkipError_false); } void WeaponsDB::load() |