aboutsummaryrefslogtreecommitdiff
path: root/core/variant_op.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2014-02-25 09:31:47 -0300
committerJuan Linietsky2014-02-25 09:31:47 -0300
commitb2ce682f6ed9493423be257a5b2e87126692a94f (patch)
tree705a351239b0f87c0e7166c5948716a054ca98d8 /core/variant_op.cpp
parent06e358199f0c038e781753001d9292349f2040ad (diff)
downloadgodot-b2ce682f6ed9493423be257a5b2e87126692a94f.tar.gz
godot-b2ce682f6ed9493423be257a5b2e87126692a94f.tar.zst
godot-b2ce682f6ed9493423be257a5b2e87126692a94f.zip
Diffstat (limited to 'core/variant_op.cpp')
-rw-r--r--core/variant_op.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/variant_op.cpp b/core/variant_op.cpp
index 109e4ab38..50908bbf9 100644
--- a/core/variant_op.cpp
+++ b/core/variant_op.cpp
@@ -1319,7 +1319,7 @@ void Variant::set(const Variant& p_index, const Variant& p_value, bool *r_valid)
return;
int type=p_value;
- if (type<0 || type>=6)
+ if (type<0 || type>=InputEvent::TYPE_MAX)
return; //fail
valid=true;
ie.type=InputEvent::Type(type);
@@ -2765,6 +2765,7 @@ void Variant::get_property_list(List<PropertyInfo> *p_list) const {
InputEvent ie = operator InputEvent();
+
p_list->push_back( PropertyInfo(Variant::INT,"type"));
p_list->push_back( PropertyInfo(Variant::INT,"device"));
p_list->push_back( PropertyInfo(Variant::INT,"ID"));