[DiscordArchive] https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/Entities/Unit/Unit.cpp#L3988
[DiscordArchive] https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/Entities/Unit/Unit.cpp#L3988
Archived author: Pandaros • Posted: 2023-04-01T19:12:51.628000+00:00
Original source
https://github.com/TrinityCore/TrinityCo....cpp#L3988
Why does this track the number of removed auras?
[Embed: TrinityCore/Unit.cpp at master · TrinityCore/TrinityCore]
TrinityCore Open Source MMO Framework (master = 10.0.7.48865, 3.3.5 = 3.3.5a.12340) - TrinityCore/Unit.cpp at master · TrinityCore/TrinityCore
https://github.com/TrinityCore/TrinityCo...t/Unit.cpp
Archived author: Tea • Posted: 2023-04-01T19:13:27.497000+00:00
Original source
```
if (m_removedAurasCount > removedAuras + 1)
iter = m_interruptableAuras.begin();
```
Archived author: Tea • Posted: 2023-04-01T19:13:31.170000+00:00
Original source
because this
Archived author: Tea • Posted: 2023-04-01T19:14:03.148000+00:00
Original source
removing one aura can chain remove other auras, in which case `iter` gets invalidated
Archived author: Pandaros • Posted: 2023-04-01T19:14:17.418000+00:00
Original source
oooo