1
0
Fork 0

Index out of range (-1)

This commit is contained in:
Scott Giese 2020-11-21 02:12:39 -06:00
parent c874567679
commit a150e89e9b

View file

@ -1484,7 +1484,7 @@ foreach(s; cloudShadowArray)
}
# now write out the closest cloud for the detail effects
if (index_min != -1) {
var s = cloudShadowArray[index_min];
diffx = (s.lat - eyeLat) * local_weather.lat_to_m + offset_x;
@ -1497,7 +1497,7 @@ foreach(s; cloudShadowArray)
#print("Dist_max:", dist_max, " index_max: ", index_max);
cloudShadowMinIndex = index_max;
if (dist_max > 0.0) {cloudShadowMaxDist = dist_max;}
}
settimer( func {shadow_management_loop(i)}, 0);
}