summaryrefslogtreecommitdiff
path: root/modules/dlscript/godot.cpp
diff options
context:
space:
mode:
authorEmmanuel Leblond <emmanuel.leblond@gmail.com>2017-04-09 11:47:53 +0200
committerEmmanuel Leblond <emmanuel.leblond@gmail.com>2017-04-09 11:47:53 +0200
commitd48aabcec11fe3ee2d301f290dae11ed653300cb (patch)
tree23a0ec28a7d01c16b8de20a5dc495eeb8ee2101b /modules/dlscript/godot.cpp
parent68ae50ecc25c64c4834f2db062500ba5084763d9 (diff)
Add GlobalConstants entry to the dlscript's api.json generator
Diffstat (limited to 'modules/dlscript/godot.cpp')
-rw-r--r--modules/dlscript/godot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/dlscript/godot.cpp b/modules/dlscript/godot.cpp
index 0b7935a735..fccf3a29bd 100644
--- a/modules/dlscript/godot.cpp
+++ b/modules/dlscript/godot.cpp
@@ -183,8 +183,8 @@ void GDAPI *godot_dlinstance_get_userdata(godot_object *p_instance) {
void GDAPI godot_get_global_constants(godot_dictionary *p_constants) {
Dictionary *constants = (Dictionary *)p_constants;
- const int constants_cont = GlobalConstants::get_global_constant_count();
- for (int i = 0; i < constants_cont; ++i) {
+ const int constants_count = GlobalConstants::get_global_constant_count();
+ for (int i = 0; i < constants_count; ++i) {
const char *name = GlobalConstants::get_global_constant_name(i);
int value = GlobalConstants::get_global_constant_value(i);
(*constants)[name] = value;