Last active
August 29, 2015 14:17
-
-
Save Razzlegames/3615f6c96ac109262a06 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var test = null | |
#***************************************************************** | |
func _ready(): | |
# This works fine | |
if(test != null): | |
# Free resources etc | |
# ... | |
print("not null") | |
# Set the reference to null since it is now invalid | |
test = null | |
else: | |
print("it was null") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment