Core/Game: Fix remaining warnings on windows (and most likely almost all of the ones on *nix)

--HG--
branch : trunk
This commit is contained in:
silinoron
2010-09-03 21:55:57 -07:00
parent 1e1c596dda
commit 5179d3149a
20 changed files with 69 additions and 57 deletions
@@ -485,11 +485,10 @@ void WorldSession::HandleZoneUpdateOpcode(WorldPacket & recv_data)
void WorldSession::HandleSetTargetOpcode(WorldPacket & recv_data)
{
// When this packet send?
uint64 guid ;
uint64 guid;
recv_data >> guid;
_player->SetUInt32Value(UNIT_FIELD_TARGET, guid);
_player->SetUInt32Value(UNIT_FIELD_TARGET, uint32(guid));
// update reputation list if need
Unit* unit = ObjectAccessor::GetUnit(*_player, guid);
@@ -614,7 +614,7 @@ void WorldSession::HandlePetRename(WorldPacket & recv_data)
trans->PAppend("UPDATE character_pet SET name = '%s', renamed = '1' WHERE owner = '%u' AND id = '%u'", name.c_str(), _player->GetGUIDLow(), pet->GetCharmInfo()->GetPetNumber());
CharacterDatabase.CommitTransaction(trans);
pet->SetUInt32Value(UNIT_FIELD_PET_NAME_TIMESTAMP, time(NULL));
pet->SetUInt32Value(UNIT_FIELD_PET_NAME_TIMESTAMP, uint32(time(NULL))); // cast can't be helped
}
void WorldSession::HandlePetAbandon(WorldPacket & recv_data)