mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 04:12:40 +01:00
Core/Transports: Fix crash related to Transport
This commit is contained in:
@@ -664,9 +664,9 @@ uint32 Transport::AddNPCPassenger(uint32 tguid, uint32 entry, float x, float y,
|
||||
return 0;
|
||||
}
|
||||
|
||||
creature->m_isWorldObject = true; //so it will not be unloaded with grid
|
||||
map->AddToMap(creature);
|
||||
m_NPCPassengerSet.insert(creature);
|
||||
creature->SetWorldObject(true); //so it will not be unloaded with grid
|
||||
|
||||
if (tguid == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user