fix(Core/Vehicle): Crash (#13180)
This commit is contained in:
parent
bf98a481b7
commit
60efd8215d
1 changed files with 3 additions and 0 deletions
|
|
@ -344,6 +344,9 @@ bool Vehicle::AddPassenger(Unit* unit, int8 seatId)
|
|||
ASSERT(seat->second.IsEmpty());
|
||||
}
|
||||
|
||||
if (!seat->second.SeatInfo)
|
||||
return false;
|
||||
|
||||
LOG_DEBUG("vehicles", "Unit {} enter vehicle entry {} id {} ({}) seat {}",
|
||||
unit->GetName(), _me->GetEntry(), _vehicleInfo->m_ID, _me->GetGUID().ToString(), (int32)seat->first);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue