Skip to content

Commit

Permalink
fixed singleton naming thingy
Browse files Browse the repository at this point in the history
  • Loading branch information
karroffel committed Jun 20, 2017
1 parent b6ca6a2 commit 8216539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binding_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def generate_class_implementation(icalls, used_classes, c):
source.append("static inline void ___singleton_init()")
source.append("{")
source.append("\tif (" + core_object_name + " == nullptr) {")
source.append("\t\t" + core_object_name + " = godot_global_get_singleton(\"" + c["name"] + "\");")
source.append("\t\t" + core_object_name + " = godot_global_get_singleton(\"" + strip_name(c["name"]) + "\");")
source.append("\t}")
source.append("}")

Expand Down

0 comments on commit 8216539

Please sign in to comment.