Make sure we print out script call stack when division by zero occurs.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5152 4a71c877-e1ca-e34f-864e-861f7616d084
master
Roman C 2008-05-23 14:29:11 +00:00
parent 0d61fb663f
commit d89f43106d
1 changed files with 4 additions and 2 deletions

View File

@ -620,7 +620,8 @@ BOOL stackBinaryOp(OPCODE opcode)
}
else
{
ASSERT(false, "stackBinaryOp: division by zero (float)");
debug(LOG_ERROR, "stackBinaryOp: division by zero (float)");
return false;
}
}
else
@ -631,7 +632,8 @@ BOOL stackBinaryOp(OPCODE opcode)
}
else
{
ASSERT(false, "stackBinaryOp: division by zero (integer)");
debug(LOG_ERROR, "stackBinaryOp: division by zero (integer)");
return false;
}
}
break;