mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Merge pull request #3507 from megamage/master
Core/Grids: Make npc on transport world object. Try to fix the bug that npc are unloaded with grid and disappear.
This commit is contained in:
@@ -664,6 +664,7 @@ 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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user