diff options
author | megamage <none@none> | 2008-12-15 15:38:02 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-15 15:38:02 -0600 |
commit | 827b7060283c3537c169f03e45aa82c590467a90 (patch) | |
tree | 94f8b0638c46b5749834655900b24ead5972545c /src | |
parent | 3f9e5651e8ffb69546832d4c6bd9fd6073db8a21 (diff) |
*Fix a typo that makes no trigger can be summoned.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 6ecf241dfa2..7de1cb5da4e 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1587,7 +1587,7 @@ GameObject* WorldObject::SummonGameObject(uint32 entry, float x, float y, float Creature* WorldObject::SummonTrigger(float x, float y, float z, float ang, uint32 duration, CreatureAI* (*GetAI)(Creature*)) { TempSummonType summonType = (duration == 0) ? TEMPSUMMON_DEAD_DESPAWN : TEMPSUMMON_TIMED_DESPAWN; - Creature* summon = SummonCreature(WORLD_TRIGGER, x, y, z, ang, summonType, 0); + Creature* summon = SummonCreature(WORLD_TRIGGER, x, y, z, ang, summonType, duration); if(!summon) return NULL; |