From 827b7060283c3537c169f03e45aa82c590467a90 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 15 Dec 2008 15:38:02 -0600 Subject: [PATCH] *Fix a typo that makes no trigger can be summoned. --HG-- branch : trunk --- src/game/Object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 6ecf241dfa..7de1cb5da4 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;