Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Apr 3, 2018
1 parent e5b0a2a commit cde24af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulation/elements/MERC.cpp
Expand Up @@ -50,7 +50,7 @@ int Element_MERC::update(UPDATE_FUNC_ARGS)
int r, rx, ry, trade, np;
// Max number of particles that can be condensed into one
const int absorbScale = 10000;
// Integer overflow prevention
// Obscure division by 0 fix
if (parts[i].temp + 1 == 0)
parts[i].temp = 0;
int maxtmp = ((absorbScale/(parts[i].temp + 1))-1);
Expand Down

0 comments on commit cde24af

Please sign in to comment.