Core/DBLayer: Couple fixes

This commit is contained in:
leak
2012-01-02 20:29:22 +01:00
parent ced346076b
commit 73f79c41a1
5 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -568,7 +568,7 @@ bool ChatHandler::HandleCharacterChangeRaceCommand(const char * args)
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_UPD_ADD_AT_LOGIN_FLAG);
stmt->setUInt16(0, uint16(AT_LOGIN_CHANGE_FACTION));
stmt->setUInt16(0, uint16(AT_LOGIN_CHANGE_RACE));
if (target)
{
@@ -710,13 +710,13 @@ bool ChatHandler::HandleLookupPlayerIpCommand(const char* args)
std::string ip;
int32 limit;
char* limit_str;
Player *chr = getSelectedPlayer();
if (chr == NULL)
{
if (!*args)
return false;
ip = strtok ((char*)args, " ");
limit_str = strtok (NULL, " ");
limit = limit_str ? atoi (limit_str) : -1;
+1 -1
View File
@@ -1936,7 +1936,7 @@ void World::Update(uint32 diff)
stmt->setUInt64(0, uint64(tmpDiff));
stmt->setUInt16(1, uint16(maxOnlinePlayers));
stmt->setUInt32(2, realmID);
stmt->setUInt16(3, uint64(m_startTime));
stmt->setUInt64(3, uint64(m_startTime));
LoginDatabase.Execute(stmt);
}