From 07c62ac076c698cb7d6a4f8ceed616d982421f14 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 May 2016 01:02:51 +0300 Subject: Add skipError parameter into xmlutils. --- src/resources/db/weaponsdb.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/resources/db/weaponsdb.cpp') 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() -- cgit v1.2.3-70-g09d2