Skip to content

Commit

Permalink
Fix a crash in get_static_property_type_indexed
Browse files Browse the repository at this point in the history
  • Loading branch information
bojidar-bg committed Nov 24, 2017
1 parent 0300522 commit 0b63e84
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1749,6 +1749,13 @@ Variant::Type Object::get_static_property_type(const StringName &p_property, boo

Variant::Type Object::get_static_property_type_indexed(const Vector<StringName> &p_path, bool *r_valid) const {

if (p_path.size() == 0) {
if (r_valid)
*r_valid = false;

return Variant::NIL;
}

bool valid = false;
Variant::Type t = get_static_property_type(p_path[0], &valid);
if (!valid) {
Expand Down

0 comments on commit 0b63e84

Please sign in to comment.