From 0c20db8d108c4123fcc3ecb343759e68567a4d4e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 26 Nov 2018 00:51:57 +0300 Subject: Remove extra ; from different code. --- src/resources/db/itemdb.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/resources/db/itemdb.cpp') diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp index 78ac033a6..5fbc16a79 100644 --- a/src/resources/db/itemdb.cpp +++ b/src/resources/db/itemdb.cpp @@ -304,7 +304,7 @@ void ItemDB::loadXmlFile(const std::string &fileName, if (id == 0) { reportAlways("ItemDB: Invalid or missing item ID in %s!", - fileName.c_str()); + fileName.c_str()) continue; } else if (mItemInfos.find(id) != mItemInfos.end()) @@ -403,7 +403,7 @@ void ItemDB::loadXmlFile(const std::string &fileName, { reportAlways("Inherit item %d from not existing item %d", id, - inherit); + inherit) } } @@ -682,7 +682,7 @@ void ItemDB::loadXmlFile(const std::string &fileName, if (attackRange == 0) { reportAlways("ItemDB: Missing attack range from weapon %i!", - id); + id) } } @@ -760,7 +760,7 @@ void ItemDB::unload() { logger->log1("Unloading item database..."); - delete2(mUnknown); + delete2(mUnknown) delete_all(mItemInfos); mItemInfos.clear(); @@ -798,7 +798,7 @@ const ItemInfo &ItemDB::get(const int id) if (i == mItemInfos.end()) { - reportAlways("ItemDB: Warning, unknown item ID# %d", id); + reportAlways("ItemDB: Warning, unknown item ID# %d", id) return *mUnknown; } @@ -818,7 +818,7 @@ const ItemInfo &ItemDB::get(const std::string &name) if (!name.empty()) { reportAlways("ItemDB: Warning, unknown item name \"%s\"", - name.c_str()); + name.c_str()) } return *mUnknown; } @@ -1000,7 +1000,7 @@ static void loadSoundRef(ItemInfo *const itemInfo, XmlNodeConstPtr node) else { reportAlways("ItemDB: Ignoring unknown sound event '%s'", - event.c_str()); + event.c_str()) } } -- cgit v1.2.3-60-g2f50