Jelajahi Sumber

Replace a OPCODE_BREAK with break in opcode 31

This was a mistake made in 520d84e. There are no more other looping
structures left in this function.
Hein-Pieter van Braam 8 tahun lalu
induk
melakukan
6c15c23889
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      modules/gdscript/gd_function.cpp

+ 1 - 1
modules/gdscript/gd_function.cpp

@@ -469,7 +469,7 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a
 							if (cmp == scr_B) {
 								//inherits from script, all ok
 								extends_ok = true;
-								OPCODE_BREAK;
+								break;
 							}
 
 							cmp = cmp->_base;