diff options
Diffstat (limited to 'src/game/PlayerDump.cpp')
-rw-r--r-- | src/game/PlayerDump.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/PlayerDump.cpp b/src/game/PlayerDump.cpp index 32aca45662f..d0dca3cdfc3 100644 --- a/src/game/PlayerDump.cpp +++ b/src/game/PlayerDump.cpp @@ -349,7 +349,7 @@ std::string PlayerDumpWriter::GetDump(uint32 guid) std::string reqName; for (QueryFieldNames::const_iterator itr = namesMap.begin(); itr != namesMap.end(); ++itr) { - if (itr->substr(0,9)=="required_") + if (itr->substr(0,9) == "required_") { reqName = *itr; break; @@ -472,16 +472,16 @@ DumpReturn PlayerDumpReader::LoadDump(const std::string& file, uint32 account, s // skip empty strings size_t nw_pos = line.find_first_not_of(" \t\n\r\7"); - if (nw_pos==std::string::npos) + if (nw_pos == std::string::npos) continue; // skip NOTE - if (line.substr(nw_pos,15)=="IMPORTANT NOTE:") + if (line.substr(nw_pos,15) == "IMPORTANT NOTE:") continue; // add required_ check /* - if (line.substr(nw_pos,41)=="UPDATE character_db_version SET required_") + if (line.substr(nw_pos,41) == "UPDATE character_db_version SET required_") { if (!CharacterDatabase.Execute(line.c_str())) ROLLBACK(DUMP_FILE_BROKEN); @@ -600,7 +600,7 @@ DumpReturn PlayerDumpReader::LoadDump(const std::string& file, uint32 account, s { //store a map of old pet id to new inserted pet id for use by type 5 tables snprintf(currpetid, 20, "%s", getnth(line, 1).c_str()); - if (strlen(lastpetid)==0) snprintf(lastpetid, 20, "%s", currpetid); + if (strlen(lastpetid) == 0) snprintf(lastpetid, 20, "%s", currpetid); if (strcmp(lastpetid,currpetid)!=0) { snprintf(newpetid, 20, "%d", objmgr.GeneratePetNumber()); |