Show
Ignore:
Timestamp:
11/19/08 13:49:35 (17 years ago)
Author:
yumileroy
Message:

[svn] Fixed freeze caused by dynamic objects (hopefully).

Original author: gvcoman
Date: 2008-11-15 13:34:59-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/DynamicObject.cpp

    r237 r238  
    138138{ 
    139139    // Make sure the object is back to grid container for removal as farsight targets 
    140     // are switched to world container on creation 
    141     GetMap()->SwitchGridContainers(this, false); 
     140    // are switched to world container on creation and they are also set to active 
     141    if (isActive()) 
     142    { 
     143        GetMap()->SwitchGridContainers(this, false); 
     144        setActive(false); 
     145    } 
    142146    SendObjectDeSpawnAnim(GetGUID()); 
    143147    AddObjectToRemoveList();