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-861f7616d084master
parent
0d61fb663f
commit
d89f43106d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue