summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gd_compiler.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-01-06 00:39:35 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-01-06 00:39:35 -0300
commitbd0356207631602f35e2111bc73bca2bd53e91a1 (patch)
tree6d8fd9e373913496281aed33016d0b4f6aa7a8dc /modules/gdscript/gd_compiler.cpp
parentf75ae815d51571287892d77414d45e15bfdb849b (diff)
downloadredot-engine-bd0356207631602f35e2111bc73bca2bd53e91a1.tar.gz
-Resolved bug that made yield() not work in some situations, fixes #884
Diffstat (limited to 'modules/gdscript/gd_compiler.cpp')
-rw-r--r--modules/gdscript/gd_compiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_compiler.cpp b/modules/gdscript/gd_compiler.cpp
index 6289e6961c..278651d642 100644
--- a/modules/gdscript/gd_compiler.cpp
+++ b/modules/gdscript/gd_compiler.cpp
@@ -528,7 +528,7 @@ int GDCompiler::_parse_expression(CodeGen& codegen,const GDParser::Node *p_expre
int ret = _parse_expression(codegen,on->arguments[i],slevel);
if (ret<0)
return ret;
- if (ret&GDFunction::ADDR_TYPE_STACK<<GDFunction::ADDR_BITS) {
+ if (ret&(GDFunction::ADDR_TYPE_STACK<<GDFunction::ADDR_BITS)) {
slevel++;
codegen.alloc_stack(slevel);
}