Browse Source

Fixes Ref's GetTypeInfo missing with ptrcall disabled

Ignacio Etcheverry 8 years ago
parent
commit
af4c4397df
1 changed files with 6 additions and 1 deletions
  1. 6 1
      core/reference.h

+ 6 - 1
core/reference.h

@@ -374,6 +374,10 @@ struct PtrToArg<const RefPtr &> {
 	}
 };
 
+#endif // PTRCALL_ENABLED
+
+#ifdef DEBUG_METHODS_ENABLED
+
 template <class T>
 struct GetTypeInfo<Ref<T> > {
 	enum { VARIANT_TYPE = Variant::OBJECT };
@@ -392,5 +396,6 @@ struct GetTypeInfo<const Ref<T> &> {
 	}
 };
 
-#endif
+#endif // DEBUG_METHODS_ENABLED
+
 #endif // REFERENCE_H