diff options
Diffstat (limited to 'src/game/Object.cpp')
-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; |