[9324] Fix some gcc warnings

This commit is contained in:
AlexDereka 2010-02-08 02:25:23 +03:00
parent 2a01c79609
commit 4338c9105d
27 changed files with 102 additions and 103 deletions

View file

@ -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;
}