浏览代码

Fixed wrong break statement in GDFunction::call

Scayze 8 年之前
父节点
当前提交
0722df4829
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/gdscript/gd_function.cpp

+ 1 - 1
modules/gdscript/gd_function.cpp

@@ -909,7 +909,7 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a
 					gds = gds->base.ptr();
 					E = gds->member_functions.find(*methodname);
 					if (E)
-						OPCODE_BREAK;
+						break;
 				}
 
 				Variant::CallError err;