mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[9324] Fix some gcc warnings
This commit is contained in:
parent
2a01c79609
commit
4338c9105d
27 changed files with 102 additions and 103 deletions
|
|
@ -2159,7 +2159,7 @@ bool ChatHandler::HandlePInfoCommand(const char* args)
|
|||
|
||||
std::string username = GetMangosString(LANG_ERROR);
|
||||
std::string last_ip = GetMangosString(LANG_ERROR);
|
||||
uint32 security = 0;
|
||||
AccountTypes security = SEC_PLAYER;
|
||||
std::string last_login = GetMangosString(LANG_ERROR);
|
||||
|
||||
QueryResult* result = loginDatabase.PQuery("SELECT username,gmlevel,last_ip,last_login FROM account WHERE id = '%u'",accId);
|
||||
|
|
@ -2167,7 +2167,7 @@ bool ChatHandler::HandlePInfoCommand(const char* args)
|
|||
{
|
||||
Field* fields = result->Fetch();
|
||||
username = fields[0].GetCppString();
|
||||
security = fields[1].GetUInt32();
|
||||
security = (AccountTypes)fields[1].GetUInt32();
|
||||
|
||||
if(!m_session || m_session->GetSecurity() >= security)
|
||||
{
|
||||
|
|
@ -3681,7 +3681,7 @@ bool ChatHandler::HandleHonorAddCommand(const char* args)
|
|||
if (HasLowerSecurity(target, 0))
|
||||
return false;
|
||||
|
||||
uint32 amount = (uint32)atoi(args);
|
||||
float amount = (float)atof(args);
|
||||
target->RewardHonor(NULL, 1, amount);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue