mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-16 21:20:01 -04:00
Core: Fix warnings vs2014 ctp (no support)
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user