diff --git a/test/src/example.cpp b/test/src/example.cpp index f0fce6c6..cbf13318 100644 --- a/test/src/example.cpp +++ b/test/src/example.cpp @@ -16,7 +16,7 @@ using namespace godot; int ExampleRef::instance_count = 0; int ExampleRef::last_id = 0; -int ExampleRef::get_id() { +int ExampleRef::get_id() const { return id; } diff --git a/test/src/example.h b/test/src/example.h index afde0f7a..ab9c8c20 100644 --- a/test/src/example.h +++ b/test/src/example.h @@ -38,7 +38,7 @@ public: ExampleRef(); ~ExampleRef(); - int get_id(); + int get_id() const; }; class ExampleMin : public Control {