Index out of range (-1)
This commit is contained in:
parent
c874567679
commit
a150e89e9b
1 changed files with 16 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue