diff options
| author | megamage <none@none> | 2009-05-23 20:40:14 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-05-23 20:40:14 -0500 |
| commit | 278089303093545c131a58089099335ec6dc7c61 (patch) | |
| tree | 58f73b56551e7f837902523c095062583354dfa4 /src/game/Creature.cpp | |
| parent | 7ef7f7fa82f88d0549c1d103bb1ab3f466bc4bf1 (diff) | |
*Fix a bug that player can change to an occupied seat on vehicle.
*Load full creature data for vehicles.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
| -rw-r--r-- | src/game/Creature.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 4ba8e66fc9f..3c90f4b3b62 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -1434,7 +1434,10 @@ bool Creature::CreateFromProto(uint32 guidlow, uint32 Entry, uint32 team, const } m_originalEntry = Entry; - Object::_Create(guidlow, Entry, HIGHGUID_UNIT); + if(isVehicle()) + Object::_Create(guidlow, Entry, HIGHGUID_VEHICLE); + else + Object::_Create(guidlow, Entry, HIGHGUID_UNIT); if(!UpdateEntry(Entry, team, data)) return false; |
