Forums WoW Modding Support Archives WoWModding Support Archives [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

[DiscordArchive] I'm looking to add a safety net to m_appliedAuras for scripts removing auras while iterating, so the

rektbyfaith
Administrator
0
02-13-2023, 05:29 PM
#1
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?
rektbyfaith
02-13-2023, 05:29 PM #1

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?

rektbyfaith
Administrator
0
02-13-2023, 05:48 PM
#2
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
rektbyfaith
02-13-2023, 05:48 PM #2

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

rektbyfaith
Administrator
0
02-13-2023, 05:49 PM
#3
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
rektbyfaith
02-13-2023, 05:49 PM #3

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

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)