Skip to content

Commit 1517d7c

Browse files
committed
GH-1141 Fix global constant registration
1 parent 8952c44 commit 1517d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/script/language.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ String OScriptLanguage::_make_function(const String& p_class_name, const String&
291291
}
292292

293293
void OScriptLanguage::_add_global_constant(const StringName& p_name, const Variant& p_value) {
294-
_add_global(p_value, p_value);
294+
_add_global(p_name, p_value);
295295
}
296296

297297
void OScriptLanguage::_add_named_global_constant(const StringName& p_name, const Variant& p_value) {

0 commit comments

Comments
 (0)