summaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_function.cpp
diff options
context:
space:
mode:
authorHein-Pieter van Braam <hp@tmm.cx>2017-10-01 16:51:05 +0200
committerHein-Pieter van Braam <hp@tmm.cx>2017-10-01 16:51:05 +0200
commit6c15c23889772ce4986765e801be3f216ed50a11 (patch)
tree179234b4a42681b5cec0a661cae447bc0411c48f /modules/gdscript/gd_function.cpp
parent4c36d133d736357253d1922c3870f7458c8cb760 (diff)
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.
Diffstat (limited to 'modules/gdscript/gd_function.cpp')
-rw-r--r--modules/gdscript/gd_function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_function.cpp b/modules/gdscript/gd_function.cpp
index 767ea29f3c..9df2823c35 100644
--- a/modules/gdscript/gd_function.cpp
+++ b/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;