mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[7532] Avoid warnings at use size_t with printf fromat strings.
This commit is contained in:
parent
b8b79d67ad
commit
f4482f247f
12 changed files with 32 additions and 32 deletions
|
|
@ -596,7 +596,7 @@ void Guild::CreateRank(std::string name_,uint32 rights)
|
|||
|
||||
// name now can be used for encoding to DB
|
||||
CharacterDatabase.escape_string(name_);
|
||||
CharacterDatabase.PExecute( "INSERT INTO guild_rank (guildid,rid,rname,rights) VALUES ('%u', '%u', '%s', '%u')", Id, m_ranks.size(), name_.c_str(), rights );
|
||||
CharacterDatabase.PExecute( "INSERT INTO guild_rank (guildid,rid,rname,rights) VALUES ('%u', '%u', '%s', '%u')", Id, (unsigned int)m_ranks.size(), name_.c_str(), rights );
|
||||
}
|
||||
|
||||
void Guild::AddRank(const std::string& name_,uint32 rights, uint32 money)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue