mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
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());
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user