[DiscordArchive] I'm looking to add a safety net to m_appliedAuras for scripts removing auras while iterating, so the
[DiscordArchive] I'm looking to add a safety net to m_appliedAuras for scripts removing auras while iterating, so the
Archived author: whatwere • Posted: 2023-02-13T17:29:03.823000+00:00
Original source
I'm looking to add a safety net to m_appliedAuras for scripts removing auras while iterating, so the remove function goes through the list of all active iterators (which should for most cases be 0) stored in a static member and increments them if they are the removed aura. Is there any reason this wouldn't be a good idea?
Archived author: robinsch • Posted: 2023-02-13T17:48:02.512000+00:00
Original source
some RAII wrapper to looping m_appliedAuras and then ASSERT when something erases from it
Archived author: robinsch • Posted: 2023-02-13T17:49:53.835000+00:00
Original source
but then I would rather move this to some pipeline that checks for these mistakes and report them in the building process