diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-11-26 00:51:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-11-27 20:33:15 +0300 |
commit | 0c20db8d108c4123fcc3ecb343759e68567a4d4e (patch) | |
tree | f577edeae7b4866d68c084a1eaa229e98c80ea8f /src/resources/db/horsedb.cpp | |
parent | 2be4fc5b4eee97938657c9c8be73c4b91c8b9826 (diff) | |
download | manaverse-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.gz manaverse-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.bz2 manaverse-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.xz manaverse-0c20db8d108c4123fcc3ecb343759e68567a4d4e.zip |
Remove extra ; from different code.
Diffstat (limited to 'src/resources/db/horsedb.cpp')
-rw-r--r-- | src/resources/db/horsedb.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/resources/db/horsedb.cpp b/src/resources/db/horsedb.cpp index 56d646eba..f7d2b0173 100644 --- a/src/resources/db/horsedb.cpp +++ b/src/resources/db/horsedb.cpp @@ -77,7 +77,7 @@ void HorseDB::load() loadXmlFile(paths.getStringValue("horsesFile"), SkipError_false); loadXmlFile(paths.getStringValue("horsesPatchFile"), SkipError_true); - loadXmlDir("horsesPatchDir", loadXmlFile); + loadXmlDir("horsesPatchDir", loadXmlFile) mLoaded = true; } @@ -135,7 +135,7 @@ static void loadRiderOffset(XmlNodePtrConst node, if (dir == -1) { reportAlways("Wrong or missing horse rider direcion: %s", - dirName.c_str()); + dirName.c_str()) return; } HorseOffset &offset = currentInfo->offsets[dir]; @@ -180,7 +180,7 @@ void HorseDB::loadXmlFile(const std::string &fileName, if (id == -1) { reportAlways("Horse Database: Horse with missing ID in %s!", - paths.getStringValue("horsesFile").c_str()); + paths.getStringValue("horsesFile").c_str()) continue; } HorseInfo *currentInfo = nullptr; @@ -214,7 +214,7 @@ static void loadOffset(XmlNodePtrConst node, if (dir == -1) { reportAlways("Wrong or missing horse direcion: %s", - dirName.c_str()); + dirName.c_str()) return; } HorseOffset &offset = currentInfo->offsets[dir]; @@ -290,7 +290,7 @@ HorseInfo *HorseDB::get(const int id, const bool allowNull) if (allowNull) return nullptr; reportAlways("HorseDB: Warning, unknown horse ID %d requested", - id); + id) return &mUnknown; } return i->second; |