diff --git a/src/hx/cppia/Cppia.cpp b/src/hx/cppia/Cppia.cpp index 4babb8882..406a9640c 100644 --- a/src/hx/cppia/Cppia.cpp +++ b/src/hx/cppia/Cppia.cpp @@ -442,6 +442,8 @@ struct BlockExpr : public CppiaExpr BlockExprRun(hx::Object *,runObject,0) void runVoid(CppiaCtx *ctx) { + if (expressions.size()==0) + return; CppiaExpr **e = &expressions[0]; CppiaExpr **end = e+expressions.size(); for(;ebreakContReturn;e++)