aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.cpp
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2009-03-20 15:17:58 +0100
committerXTZGZoReX <none@none>2009-03-20 15:17:58 +0100
commitd1adac0d11847c893b2df0778b81dbbbb79b20ee (patch)
treebef465fd25746ed1e276ede2238f155b1a347a4a /src/game/Object.cpp
parent3c713189fb6ac6666e6d8e7faa2e1fec6b425725 (diff)
parent4d7ee8208e0e1762ca70d1cee253e51d3c517551 (diff)
* Merge.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r--src/game/Object.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index a8dff0b73ab..eda29509b8c 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -1578,9 +1578,9 @@ void WorldObject::AddObjectToRemoveList()
map->AddObjectToRemoveList(this);
}
-Creature* WorldObject::SummonCreature(uint32 id, float x, float y, float z, float ang,TempSummonType spwtype,uint32 despwtime)
+TempSummon* WorldObject::SummonCreature(uint32 id, float x, float y, float z, float ang,TempSummonType spwtype,uint32 despwtime)
{
- TemporarySummon* pCreature = new TemporarySummon(GetGUID());
+ TempSummon* pCreature = new TempSummon(GetGUID());
uint32 team = 0;
if (GetTypeId()==TYPEID_PLAYER)
@@ -1625,12 +1625,13 @@ Vehicle* WorldObject::SummonVehicle(uint32 entry, float x, float y, float z, flo
{
CreatureInfo const *ci = objmgr.GetCreatureTemplate(entry);
if(!ci)
- return false;
+ return NULL;
uint32 id = ci->spells[7]; //temp store id here
+ if(!id) id = 156;
VehicleEntry const *ve = sVehicleStore.LookupEntry(id);
if(!ve)
- return false;
+ return NULL;
Vehicle *v = new Vehicle;
Map *map = GetMap();