chore(Core/Misc): add LOG_ERROR where there was commented ASSERT (#6761)
This commit is contained in:
@@ -17761,12 +17761,17 @@ void Player::_LoadArenaTeamInfo()
|
||||
if (uint32 arenaTeamId = Player::GetArenaTeamIdFromStorage(GetGUID().GetCounter(), itr.second))
|
||||
{
|
||||
ArenaTeam* arenaTeam = sArenaTeamMgr->GetArenaTeamById(arenaTeamId);
|
||||
if (!arenaTeam) // some shit, should be assert, but just ignore
|
||||
if (!arenaTeam)
|
||||
{
|
||||
LOG_ERROR("bg.arena", "Player::_LoadArenaTeamInfo: No arena team was found.");
|
||||
continue;
|
||||
}
|
||||
ArenaTeamMember const* member = arenaTeam->GetMember(GetGUID());
|
||||
if (!member) // some shit, should be assert, but just ignore
|
||||
if (!member)
|
||||
{
|
||||
LOG_ERROR("bg.arena", "Player::_LoadArenaTeamInfo: No members in the arena team (%u) was found.", arenaTeamId);
|
||||
continue;
|
||||
|
||||
}
|
||||
uint8 slot = itr.second;
|
||||
|
||||
SetArenaTeamInfoField(slot, ARENA_TEAM_ID, arenaTeamId);
|
||||
|
||||
@@ -731,7 +731,17 @@ bool StaticTransport::Create(ObjectGuid::LowType guidlow, uint32 name_id, Map* m
|
||||
SetGoAnimProgress(animprogress);
|
||||
m_goValue.Transport.AnimationInfo = sTransportMgr->GetTransportAnimInfo(goinfo->entry);
|
||||
//ASSERT(m_goValue.Transport.AnimationInfo);
|
||||
if (!m_goValue.Transport.AnimationInfo)
|
||||
{
|
||||
LOG_ERROR("vehicle", "StaticTransport::Create: No AnimationInfo was found for GameObject entry (%u)", goinfo->entry);
|
||||
return false;
|
||||
}
|
||||
//ASSERT(m_goValue.Transport.AnimationInfo->TotalTime > 0);
|
||||
if (!m_goValue.Transport.AnimationInfo->TotalTime)
|
||||
{
|
||||
LOG_ERROR("vehicle", "StaticTransport::Create: AnimationInfo->TotalTime is 0 for GameObject entry (%u)", goinfo->entry);
|
||||
return false;
|
||||
}
|
||||
SetPauseTime(goinfo->transport.pauseAtTime);
|
||||
if (goinfo->transport.startOpen && goinfo->transport.pauseAtTime)
|
||||
{
|
||||
|
||||
@@ -441,7 +441,11 @@ void Vehicle::RemovePassenger(Unit* unit)
|
||||
// but the unit is not on the vehicles seat yet, thus crashing at ASSERT(seat != Seats.end());
|
||||
// ASSERT(seat != Seats.end());
|
||||
if (seat == Seats.end())
|
||||
{
|
||||
LOG_ERROR("vehicles", "Vehicle::RemovePassenger: Vehicle entry (%u) id (%u) is dissmised and removed all existing passangers, but the unit (%s) was not on the vehicle!",
|
||||
_me->GetEntry(), _vehicleInfo->m_ID, unit->GetName().c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
LOG_DEBUG("vehicles", "Unit %s exit vehicle entry %u id %u (%s) seat %d",
|
||||
unit->GetName().c_str(), _me->GetEntry(), _vehicleInfo->m_ID, _me->GetGUID().ToString().c_str(), (int32)seat->first);
|
||||
|
||||
Reference in New Issue
Block a user