Browse Source

Fixed wrong break statement in GDFunction::call

Scayze 8 years ago
parent
commit
0722df4829
1 changed files with 1 additions and 1 deletions
  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();
 					gds = gds->base.ptr();
 					E = gds->member_functions.find(*methodname);
 					E = gds->member_functions.find(*methodname);
 					if (E)
 					if (E)
-						OPCODE_BREAK;
+						break;
 				}
 				}
 
 
 				Variant::CallError err;
 				Variant::CallError err;