Skip to content

Commit

Permalink
CID 83715
Browse files Browse the repository at this point in the history
Possible devision by zero
  • Loading branch information
Marisa-Chan committed Apr 12, 2016
1 parent 6f859c1 commit bee7f61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ypabact.cpp
Expand Up @@ -7313,6 +7313,9 @@ size_t ypabact_func108(NC_STACK_ypabact *obj, class_stru *zis, float *arg)

call_method(obj, 81, &arg81);

if (arg81.enrg_sum == 0) // Possible devision by zero
arg81.enrg_sum = 1;

v11 = v11 / (float)arg81.enrg_sum;

if ( arg )
Expand Down

0 comments on commit bee7f61

Please sign in to comment.