HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Does a special effect leak if

08-22-2007, 04:57 PM#1
DurotarLord
Does a special effect leak if you create it on a variable location, and then destroy the location afterwards?
08-22-2007, 05:06 PM#2
moyack
If you do this

Collapse JASS:
function bla takes nothing returns nothing
    local real x = YourDataX()
    local real y = YourDataY()
    local effect fx = AddSpecialEffect("fx path", x, y)
    // do your stuff
    call DestroyEffect(fx)
    set fx = null
endfunction

No, it doesn't leak.
08-22-2007, 05:15 PM#3
Rising_Dusk
Quote:
Does a special effect leak if you create it on a variable location, and then destroy the location afterwards?
No, the effect itself will not leak unless you fail to destroy the effect. Removing the location has nothing to do with the special effect.
08-22-2007, 05:23 PM#4
DurotarLord
allright, cool.
thanks.
Does a special effect leak if - Wc3C.net