mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 12:47:07 +00:00
chore(Core/Misc): add LOG_ERROR where there was commented ASSERT (#6761)
This commit is contained in:
@@ -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