summaryrefslogtreecommitdiff
path: root/core/class_db.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/class_db.cpp')
-rw-r--r--core/class_db.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/class_db.cpp b/core/class_db.cpp
index cd55219b53..4d92c5b6dd 100644
--- a/core/class_db.cpp
+++ b/core/class_db.cpp
@@ -600,9 +600,9 @@ void ClassDB::bind_integer_constant(const StringName &p_class, const StringName
#ifdef DEBUG_METHODS_ENABLED
String enum_name = p_enum;
- if (enum_name!=String()) {
- if (enum_name.find(".")!=-1) {
- enum_name=enum_name.get_slicec('.',1);
+ if (enum_name != String()) {
+ if (enum_name.find(".") != -1) {
+ enum_name = enum_name.get_slicec('.', 1);
}
List<StringName> *constants_list = type->enum_map.getptr(enum_name);
@@ -614,7 +614,6 @@ void ClassDB::bind_integer_constant(const StringName &p_class, const StringName
new_list.push_back(p_name);
type->enum_map[enum_name] = new_list;
}
-
}
type->constant_order.push_back(p_name);