fix(Core/Vehicle): Crash (#13180)
This commit is contained in:
@@ -344,6 +344,9 @@ bool Vehicle::AddPassenger(Unit* unit, int8 seatId)
|
|||||||
ASSERT(seat->second.IsEmpty());
|
ASSERT(seat->second.IsEmpty());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!seat->second.SeatInfo)
|
||||||
|
return false;
|
||||||
|
|
||||||
LOG_DEBUG("vehicles", "Unit {} enter vehicle entry {} id {} ({}) seat {}",
|
LOG_DEBUG("vehicles", "Unit {} enter vehicle entry {} id {} ({}) seat {}",
|
||||||
unit->GetName(), _me->GetEntry(), _vehicleInfo->m_ID, _me->GetGUID().ToString(), (int32)seat->first);
|
unit->GetName(), _me->GetEntry(), _vehicleInfo->m_ID, _me->GetGUID().ToString(), (int32)seat->first);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user