diff --git a/trunk/src/debug.cpp b/trunk/src/debug.cpp index c1c6e2bc..dbde6a31 100644 --- a/trunk/src/debug.cpp +++ b/trunk/src/debug.cpp @@ -402,7 +402,7 @@ int evaluate(Condition* c) case OP_G: f = value1 > value2; break; case OP_L: f = value1 < value2; break; case OP_MULT: f = value1 * value2; break; - case OP_DIV: f = value1 / value2; break; + case OP_DIV: f = (value2==0) ? 0 : (value1 / value2); break; case OP_PLUS: f = value1 + value2; break; case OP_MINUS: f = value1 - value2; break; case OP_OR: f = value1 || value2; break;