fix(Core/Vehicle): Crash (#13180)

This commit is contained in:
Angelo Venturini
2022-10-05 21:06:11 -03:00
committed by GitHub
parent bf98a481b7
commit 60efd8215d

View File

@@ -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);