mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Core/Misc: Fix some static analysis warnings exposed after 6b8f3d0.
This commit is contained in:
@@ -583,14 +583,13 @@ public:
|
||||
handler->PSendSysMessage(LANG_SUMMONING, nameLink.c_str(), handler->GetTrinityString(LANG_OFFLINE));
|
||||
|
||||
// in point where GM stay
|
||||
CharacterDatabaseTransaction dummy;
|
||||
Player::SavePositionInDB(WorldLocation(_player->GetMapId(),
|
||||
_player->GetPositionX(),
|
||||
_player->GetPositionY(),
|
||||
_player->GetPositionZ(),
|
||||
_player->GetOrientation()),
|
||||
_player->GetZoneId(),
|
||||
targetGuid, dummy);
|
||||
targetGuid, nullptr);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@@ -131,8 +131,7 @@ public:
|
||||
WorldLocation loc(fieldsDB[0].GetUInt16(), fieldsDB[2].GetFloat(), fieldsDB[3].GetFloat(), fieldsDB[4].GetFloat(), 0.0f);
|
||||
uint32 zoneId = fieldsDB[1].GetUInt16();
|
||||
|
||||
CharacterDatabaseTransaction dummy;
|
||||
Player::SavePositionInDB(loc, zoneId, player->GetGUID(), dummy);
|
||||
Player::SavePositionInDB(loc, zoneId, player->GetGUID(), nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,9 +177,8 @@ public:
|
||||
|
||||
handler->PSendSysMessage(LANG_TELEPORTING_TO, nameLink.c_str(), handler->GetTrinityString(LANG_OFFLINE), tele->name.c_str());
|
||||
|
||||
CharacterDatabaseTransaction dummy;
|
||||
Player::SavePositionInDB(WorldLocation(tele->mapId, tele->position_x, tele->position_y, tele->position_z, tele->orientation),
|
||||
sMapMgr->GetZoneId(PHASEMASK_NORMAL, tele->mapId, tele->position_x, tele->position_y, tele->position_z), player->GetGUID(), dummy);
|
||||
sMapMgr->GetZoneId(PHASEMASK_NORMAL, tele->mapId, tele->position_x, tele->position_y, tele->position_z), player->GetGUID(), nullptr);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user