*Fix a typo that makes no trigger can be summoned.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-15 15:38:02 -06:00
parent 3f9e5651e8
commit 827b706028
+1 -1
View File
@@ -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;