mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Misc: Improve LinkedList iteration - simplify code generated for begin, end and operator++
This commit is contained in:
@@ -234,7 +234,7 @@ void ObjectGridUnloader::Visit(GridRefManager<T> &m)
|
||||
{
|
||||
while (!m.empty())
|
||||
{
|
||||
T *obj = m.getFirst()->GetSource();
|
||||
T* obj = m.front()->GetSource();
|
||||
//Some creatures may summon other temp summons in CleanupsBeforeDelete()
|
||||
//So we need this even after cleaner (maybe we can remove cleaner)
|
||||
//Example: Flame Leviathan Turret 33139 is summoned when a creature is deleted
|
||||
|
||||
Reference in New Issue
Block a user