mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Objects: Properly choose between "Destroyed" or "OutOfRange" during visibility update
This commit is contained in:
@@ -282,7 +282,10 @@ template<class T>
|
||||
void ObjectGridCleaner::Visit(GridRefManager<T> &m)
|
||||
{
|
||||
for (typename GridRefManager<T>::iterator iter = m.begin(); iter != m.end(); ++iter)
|
||||
{
|
||||
iter->GetSource()->SetDestroyedObject(true);
|
||||
iter->GetSource()->CleanupsBeforeDelete();
|
||||
}
|
||||
}
|
||||
|
||||
template void ObjectGridUnloader::Visit(CreatureMapType &);
|
||||
|
||||
Reference in New Issue
Block a user