diff --git a/compiler/exprnode.cpp b/compiler/exprnode.cpp index 6aba49cd..f0ea34df 100644 --- a/compiler/exprnode.cpp +++ b/compiler/exprnode.cpp @@ -408,7 +408,7 @@ ExprNode* BinExprNode::semant(Environ* e) { } break; case LOR: - if(lc->intValue()) { //Only evaluate right expression, if left expression is false + if(!lc->intValue()) { //Only evaluate right expression, if left expression is false rc = rhs->constNode(); if(rc) { ExprNode* expr;