• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Leak question

Status
Not open for further replies.

Bannar

Code Reviewer
Level 26
Joined
Mar 19, 2008
Messages
3,140
If you declare variable but do not set it, then there is nothing given variable is pointing at therefore you do not need to null it.

Although if you use:
JASS:
function whatever takes nothing returns nothing
    local effect e = AddSpecialEffect(...)
endfunction
You should null it at the end of the function.
 
Status
Not open for further replies.
Top