mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-09-03 18:14:53 +03:00
Merge pull request #12220 from bclewi/fix/engine_details/architecture/object_class/example-myrefcounted
Fix MyRefCounted example
This commit is contained in:
@@ -304,7 +304,7 @@ dropped, the object automatically self-destructs.
|
||||
.. code-block:: cpp
|
||||
|
||||
class MyRefCounted: public RefCounted {
|
||||
GDCLASS(MyReference, RefCounted);
|
||||
GDCLASS(MyRefCounted, RefCounted);
|
||||
};
|
||||
|
||||
Ref<MyRefCounted> my_ref = memnew(MyRefCounted);
|
||||
|
||||
Reference in New Issue
Block a user