diff options
| author | Henrik Andersson | 2017-08-26 17:10:58 +0200 |
|---|---|---|
| committer | Henrik Andersson | 2017-08-26 18:59:37 +0200 |
| commit | 3cd3c1da5f965d6cc55134ac812a8ea0fd0dcdd7 (patch) | |
| tree | 00e69e0866460666d4f866f1701b4c3cad02fabf /core/object.h | |
| parent | dd7145b778ea4884fd52f5efaf79dc55375c8465 (diff) | |
| download | godot-3cd3c1da5f965d6cc55134ac812a8ea0fd0dcdd7.tar.gz godot-3cd3c1da5f965d6cc55134ac812a8ea0fd0dcdd7.tar.zst godot-3cd3c1da5f965d6cc55134ac812a8ea0fd0dcdd7.zip | |
Diffstat (limited to 'core/object.h')
| -rw-r--r-- | core/object.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/object.h b/core/object.h index 88229d27b..9eb6cd1d5 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<T *>(p_pobject); + if (p_object->is_class_ptr(T::get_class_ptr_static())) + return static_cast<T *>(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<const T *>(p_object); else return NULL; |
