fix #790 (conditional debugger can crash when using divide by zero)

This commit is contained in:
zeromus 2017-12-29 01:06:17 +00:00
parent 345b4e6139
commit 62108ca281
1 changed files with 1 additions and 1 deletions

View File

@ -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;