summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorEmmanuel Leblond <emmanuel.leblond@gmail.com>2018-04-06 19:20:12 +0200
committerEmmanuel Leblond <emmanuel.leblond@gmail.com>2018-04-06 19:20:12 +0200
commite97336a5570028a3efba65d482a8b20c72cea1f4 (patch)
treee521a5bd75bd7fd9d60416a202769e25942c0d10 /modules
parentec110076caca7a75ffb4795c32362bc52151dbcc (diff)
Fix Pluginscript add_global_constant mandatory value check
Diffstat (limited to 'modules')
-rw-r--r--modules/gdnative/pluginscript/register_types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnative/pluginscript/register_types.cpp b/modules/gdnative/pluginscript/register_types.cpp
index 8888f9e157..411d4911fa 100644
--- a/modules/gdnative/pluginscript/register_types.cpp
+++ b/modules/gdnative/pluginscript/register_types.cpp
@@ -64,7 +64,7 @@ static Error _check_language_desc(const godot_pluginscript_language_desc *desc)
// desc->make_function is not mandatory
// desc->complete_code is not mandatory
// desc->auto_indent_code is not mandatory
- // desc->add_global_constant is not mandatory
+ ERR_FAIL_COND_V(!desc->add_global_constant, ERR_BUG);
// desc->debug_get_error is not mandatory
// desc->debug_get_stack_level_count is not mandatory
// desc->debug_get_stack_level_line is not mandatory