Fix typo in NativeScript property getter

This commit is contained in:
sheepandshepherd 2017-07-25 23:03:39 +02:00
parent be5adec286
commit bdf2e8c615
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ bool NativeScriptInstance::get(const StringName &p_name, Variant &r_ret) const {
if (P) { if (P) {
godot_variant value; godot_variant value;
value = P->get().getter.get_func((godot_object *)owner, value = P->get().getter.get_func((godot_object *)owner,
P->get().setter.method_data, P->get().getter.method_data,
userdata); userdata);
r_ret = *(Variant *)&value; r_ret = *(Variant *)&value;
godot_variant_destroy(&value); godot_variant_destroy(&value);