浏览代码

Merge pull request #9855 from sheepandshepherd/nativesetter

Fix typo in NativeScript property getter
Thomas Herzog 8 年之前
父节点
当前提交
d2d48e2a7a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/nativescript/nativescript.cpp

+ 1 - 1
modules/nativescript/nativescript.cpp

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