godotengine / godotengine/godot-docs

Node tutorial says freed instance references become null instead of invalid

Open
#8,245 4 comments 1 reaction 0 assignees View on GitHub
area:manual bug
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

**Your Godot version:**

Godot 4

**Issue description:**

In the `Nodes and scene instances` tutorial, the following line:

> You can alternatively call `free()` to immediately destroy the node. You should do this with care as any reference to it will instantly become `null`.

Should say "invalid" instead of "null". Saying that a reference becomes null means that it contains the `null` value, which is not what happens.

**URL to the documentation page:**

https://docs.godotengine.org/en/stable/tutorials/scripting/nodes_and_scene_instances.html#creating-nodes

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.