Changeset 1216

Show
Ignore:
Timestamp:
03/09/2010 01:07:51 PM (6 months ago)
Author:
jackpoz
Message:

FIXED: This should fix some crashes here and there in InstanceScripts?

Location:
Trunk/src/InstanceScripts
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • Trunk/src/InstanceScripts/Instance_TheShatteredHalls.cpp

    r1167 r1216  
    22232223                mLeftHead->Emote( "This all... your fault!", Text_Yell, 10311 ); 
    22242224                mLeftHead->Despawn( 1000 ); 
     2225                mLeftHead = NULL; 
    22252226                mRightHead->RegisterAIUpdateEvent( 3000 ); 
    22262227                mRightHead->Despawn( 4000 ); 
     2228                mRightHead = NULL; 
    22272229    } 
    22282230 
  • Trunk/src/InstanceScripts/Instance_UtgardeKeep.cpp

    r1196 r1216  
    302302 
    303303                        if(pDalronnGhost != NULL) 
     304                        { 
    304305                                pDalronnGhost->Despawn(1000, 0); 
     306                                pDalronnGhost = NULL; 
     307                        } 
    305308                } 
    306309 
     
    319322 
    320323                if( pDalronnGhost != NULL && pDalronnGhost->IsAlive() ) 
     324                { 
    321325                        pDalronnGhost->Despawn(); 
     326                        pDalronnGhost = NULL; 
     327                } 
    322328        }; 
    323329 
     
    389395 
    390396                        if(pSkarvaldGhost != NULL) 
     397                        { 
    391398                                pSkarvaldGhost->Despawn(1000, 0); 
     399                                pSkarvaldGhost = NULL; 
     400                        } 
    392401                } 
    393402 
     
    406415 
    407416                if( pSkarvaldGhost != NULL && pSkarvaldGhost->IsAlive() ) 
     417                { 
    408418                        pSkarvaldGhost->Despawn(); 
     419                        pSkarvaldGhost = NULL; 
     420                } 
    409421        }; 
    410422 
  • Trunk/src/InstanceScripts/Raid_Karazhan.cpp

    r1166 r1216  
    202202                                        mAttumen = NULL; 
    203203                                        Despawn(); 
     204                                        return; 
    204205                                } 
    205206                                else MoveTo(mAttumen); 
     
    29572958 
    29582959                InfernalDummy->Despawn(10000, 0); 
     2960                InfernalDummy = NULL; 
    29592961 
    29602962                // Open door 
     
    29752977 
    29762978                if(InfernalDummy) 
     2979                { 
    29772980                        InfernalDummy->Despawn(10000, 0); 
     2981                        InfernalDummy = NULL; 
     2982                } 
    29782983 
    29792984                Creature* MAxes = NULL;