Make npc on transport world object. Try to fix the bug that npc are unloaded with grid and disappear.

This commit is contained in:
megamage
2011-10-14 18:09:21 -04:00
parent 521c3fc656
commit 71407fde1a

View File

@@ -673,6 +673,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);