From 3cd3c1da5f965d6cc55134ac812a8ea0fd0dcdd7 Mon Sep 17 00:00:00 2001 From: Henrik Andersson Date: Sat, 26 Aug 2017 17:10:58 +0200 Subject: Fix refactored Object::cast_to in NO_SAFE_CAST branch --- core/object.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/object.h b/core/object.h index 88229d27b6..9eb6cd1d56 100644 --- a/core/object.h +++ b/core/object.h @@ -571,8 +571,8 @@ public: #else if (!p_object) return NULL; - if (p_pobject->is_class_ptr(T::get_class_ptr_static())) - return static_cast(p_pobject); + if (p_object->is_class_ptr(T::get_class_ptr_static())) + return static_cast(p_object); else return NULL; #endif @@ -591,7 +591,7 @@ public: #else if (!p_object) return NULL; - if (p_pobject->is_class_ptr(T::get_class_ptr_static())) + if (p_object->is_class_ptr(T::get_class_ptr_static())) return static_cast(p_object); else return NULL; -- cgit v1.2.3