From a15e7b7189c7e08ddea10d79d51c2b6db7ad16bb Mon Sep 17 00:00:00 2001 From: Karroffel Date: Sun, 5 Mar 2017 03:02:29 +0100 Subject: I hate templates --- include/godot_cpp/core/Variant.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/godot_cpp/core') 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; -- cgit v1.2.3