From cde24af43ffe440e4ea4481d4c1b47bca8ea41c0 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Mon, 2 Apr 2018 23:04:33 -0400 Subject: [PATCH] update comment --- src/simulation/elements/MERC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/elements/MERC.cpp b/src/simulation/elements/MERC.cpp index 525829eafc..9e33dc5345 100644 --- a/src/simulation/elements/MERC.cpp +++ b/src/simulation/elements/MERC.cpp @@ -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);