Core: Fix warnings vs2014 ctp (no support)

This commit is contained in:
Vincent-Michael
2014-07-14 01:07:30 +02:00
parent 2beced7135
commit 9506fd77fc
2 changed files with 2 additions and 3 deletions

View File

@@ -441,8 +441,8 @@ void CalendarMgr::SendCalendarEventInvite(CalendarInvite const& invite)
if (!calendarEvent) // Pre-invite
{
if (Player* player = ObjectAccessor::FindPlayer(invite.GetSenderGUID()))
player->SendDirectMessage(&data);
if (Player* playerSender = ObjectAccessor::FindPlayer(invite.GetSenderGUID()))
playerSender->SendDirectMessage(&data);
}
else
{

View File

@@ -17537,7 +17537,6 @@ bool Player::LoadFromDB(uint32 guid, SQLQueryHolder *holder)
if (!map)
{
PlayerInfo const* info = sObjectMgr->GetPlayerInfo(getRace(), getClass());
mapId = info->mapId;
Relocate(info->positionX, info->positionY, info->positionZ, 0.0f);
map = sMapMgr->CreateMap(mapId, this);