Skip to content
Snippets Groups Projects

Bugfix: Sporulation table couldn't handle average temperatures below zero

Merged Tor-Einar Skog requested to merge master into develop
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -53,7 +53,7 @@ public class SporulationTable {
{
try
{
return this.sporulationTable.get(hourOfDay)[new Double(Math.floor(averageTemperature)).intValue()];
return this.sporulationTable.get(hourOfDay)[Math.max(0,Double.valueOf(Math.floor(averageTemperature)).intValue())];
}
catch(NullPointerException ex)
{
Loading