diff options
author | megamage <none@none> | 2009-08-19 23:01:56 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-19 23:01:56 -0500 |
commit | 6169483d0f0959c813ad6302cfc9217306a8ef43 (patch) | |
tree | 6d49c2aa23e338b9fcc37e393273fc86c3831d10 /src/game/Object.cpp | |
parent | 92f3d270272716c5a43f3916b0db042369808813 (diff) |
*Set vehicle owner guid and faction in summonvehicle instead of spelleffecthandler.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r-- | src/game/Object.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 2e3aa8e0528..1d2aeabd132 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1852,6 +1852,11 @@ Vehicle* WorldObject::SummonVehicle(uint32 entry, float x, float y, float z, flo return NULL; } + if(isType(TYPEMASK_UNIT)) + { + v->SetUInt64Value(UNIT_FIELD_SUMMONEDBY, GetGUID()); + v->setFaction(((Unit*)this)->getFaction()); + } map->Add((Creature*)v); //ObjectAccessor::UpdateObjectVisibility(v); |