Browse Source

Fixed wrong break statement in GDFunction::call

Scayze 8 năm trước cách đây
mục cha
commit
0722df4829
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;