Patch level : 10.0

Files correlati     : ca1.exe
Ricompilazione Demo : [ ]
Commento            :
Controllato stack underflow nelle moltiplicazioni


git-svn-id: svn://10.65.10.50/trunk@19772 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2009-12-14 16:36:55 +00:00
parent 57815ae41e
commit accb19a680

View File

@ -906,8 +906,13 @@ void TAVM::execute(const TAVM_op& op)
{
const TVariant& v1 = _stack.pop();
TVariant& v0 = (TVariant&)_stack.peek();
const real m = v0.as_real() * v1.as_real();
v0.set(m);
if (v0.is_real())
{
const real m = v0.as_real() * v1.as_real();
v0.set(m);
}
else
log_error("Stack underflow");
}
break;
case avm_negate: