From 64ee4a54f4730cdf777d75694ab48280f543ac88 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 18:12:44 +0000 Subject: More scoping fixes --- Stars45/Weather.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Stars45/Weather.cpp') 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]; -- cgit v1.1