Fix for bug [#13651] Convertor->Math->Divide broken

Changed the if statement to catch zero case properly.
This commit is contained in:
Juho Vepsalainen 2008-06-26 17:08:07 +00:00
parent cef2867fef
commit a8f00246ba
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ static void do_math(bNode *node, float *out, float *in, float *in2)
break;
case 3: /* Divide */
{
if(in[1]==0) /* We don't want to divide by zero. */
if(in2[0]==0) /* We don't want to divide by zero. */
out[0]= 0.0;
else
out[0]= in[0] / in2[0];