summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Weather.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/Weather.cpp')
-rw-r--r--Stars45/Weather.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Stars45/Weather.cpp b/Stars45/Weather.cpp
index 49a6259..a55ec6c 100644
--- a/Stars45/Weather.cpp
+++ b/Stars45/Weather.cpp
@@ -66,14 +66,14 @@ Weather::NormalizeChances()
else {
chances[0] = 0;
- for (i = 1; i < NUM_STATES; i++)
+ for (int i = 1; i < NUM_STATES; i++)
chances[i] /= total;
}
int index = 0;
double level = 0;
- for (i = 0; i < NUM_STATES; i++) {
+ for (int i = 0; i < NUM_STATES; i++) {
if (chances[i] > 0) {
level += chances[i];