summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/core
diff options
context:
space:
mode:
Diffstat (limited to 'include/godot_cpp/core')
-rw-r--r--include/godot_cpp/core/Variant.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/godot_cpp/core/Variant.h b/include/godot_cpp/core/Variant.h
index 7d4b103..b034906 100644
--- a/include/godot_cpp/core/Variant.h
+++ b/include/godot_cpp/core/Variant.h
@@ -409,11 +409,7 @@ public:
godot_input_event s = godot_variant_as_input_event(&_godot_variant);
return *(InputEvent *) &s;
}
- operator Object*() const
- {
- godot_object *s = godot_variant_as_object(&_godot_variant);
- return (Object *) s;
- }
+ operator Object() const;
operator Dictionary() const;
operator Array() const;