Changeset 1140

Show
Ignore:
Timestamp:
02/01/2010 08:47:39 AM (5 weeks ago)
Author:
jackpoz
Message:

FIXED: Crash about "Defenders of Darrowshire" questid 5211.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Trunk/src/QuestScripts/Quest_Eastern_Plaguelands.cpp

    r1114 r1140  
    3737      Creature* creat = _unit->GetMapMgr()->GetInterface()->SpawnCreature(11064, _unit->GetPositionX(), _unit->GetPositionY(), _unit->GetPositionZ(), _unit->GetOrientation(), true, false, 0, 0); 
    3838      if(creat) 
    39                   sEventMgr.AddEvent(creat, &Creature::SafeDelete, EVENT_CREATURE_REMOVE_CORPSE,60000, 1, 0); 
     39        creat->Despawn(60000,0); 
    4040   } 
    4141 
     
    7575 
    7676      Spirit->SetUInt64Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); 
    77       sEventMgr.AddEvent(Spirit, &Creature::SafeDelete, EVENT_CREATURE_REMOVE_CORPSE,5000, 1, 0); 
    7877      Spirit->Despawn(4000, 0); 
    7978   }