aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-29 00:12:28 -0500
committermegamage <none@none>2009-04-29 00:12:28 -0500
commit207c3f7afff6ee2b462bd6855487fbcbfdbd63a8 (patch)
tree23eae4bfc71f2c894f2f565bdb9c54665fade652 /src/game/Object.cpp
parent8fedcee78bd94b30c459485169d15162c756a3f3 (diff)
*Fix a bug that player summoned creature does not count player as summoner.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r--src/game/Object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index 1cab9d9b99c..eb7ce37734d 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -1661,7 +1661,7 @@ TempSummon* WorldObject::SummonCreature(uint32 entry, float x, float y, float z,
if (x == 0.0f && y == 0.0f && z == 0.0f)
GetClosePoint(x, y, z, GetObjectSize());
- TempSummon *pCreature = map->SummonCreature(entry, x, y, z, ang, NULL, duration, GetTypeId() == TYPEID_UNIT ? (Unit*)this : NULL);
+ TempSummon *pCreature = map->SummonCreature(entry, x, y, z, ang, NULL, duration, isType(TYPEMASK_UNIT) ? (Unit*)this : NULL);
if(!pCreature)
return NULL;