mirror of
https://github.com/mangosfour/server.git
synced 2026-01-01 07:37:07 +00:00
[11928] Some warning fixes
This commit is contained in:
parent
7c827733f5
commit
c6a751134c
18 changed files with 28 additions and 38 deletions
|
|
@ -185,7 +185,7 @@ bool changeGuid(std::string &str, int n, std::map<uint32, uint32> &guidMap, uint
|
|||
return true; // not an error
|
||||
|
||||
uint32 newGuid = registerNewGuid(oldGuid, guidMap, hiGuid);
|
||||
snprintf(chritem, 20, "%d", newGuid);
|
||||
snprintf(chritem, 20, "%u", newGuid);
|
||||
|
||||
return changenth(str, n, chritem, false, nonzero);
|
||||
}
|
||||
|
|
@ -198,7 +198,7 @@ bool changetokGuid(std::string &str, int n, std::map<uint32, uint32> &guidMap, u
|
|||
return true; // not an error
|
||||
|
||||
uint32 newGuid = registerNewGuid(oldGuid, guidMap, hiGuid);
|
||||
snprintf(chritem, 20, "%d", newGuid);
|
||||
snprintf(chritem, 20, "%u", newGuid);
|
||||
|
||||
return changetoknth(str, n, chritem, false, nonzero);
|
||||
}
|
||||
|
|
@ -453,9 +453,9 @@ DumpReturn PlayerDumpReader::LoadDump(const std::string& file, uint32 account, s
|
|||
|
||||
// name encoded or empty
|
||||
|
||||
snprintf(newguid, 20, "%d", guid);
|
||||
snprintf(chraccount, 20, "%d", account);
|
||||
snprintf(newpetid, 20, "%d", sObjectMgr.GeneratePetNumber());
|
||||
snprintf(newguid, 20, "%u", guid);
|
||||
snprintf(chraccount, 20, "%u", account);
|
||||
snprintf(newpetid, 20, "%u", sObjectMgr.GeneratePetNumber());
|
||||
snprintf(lastpetid, 20, "%s", "");
|
||||
|
||||
std::map<uint32,uint32> items;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue