diff options
author | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-08 18:12:44 +0000 |
---|---|---|
committer | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-08 18:12:44 +0000 |
commit | 64ee4a54f4730cdf777d75694ab48280f543ac88 (patch) | |
tree | a353aa76807bd451c518f70b95c5880f807898cf /Stars45/Weather.cpp | |
parent | 4e117fe61651631c7b7427ed584ef3b1f9a7df69 (diff) | |
download | starshatter-64ee4a54f4730cdf777d75694ab48280f543ac88.zip starshatter-64ee4a54f4730cdf777d75694ab48280f543ac88.tar.gz starshatter-64ee4a54f4730cdf777d75694ab48280f543ac88.tar.bz2 |
More scoping fixes
Diffstat (limited to 'Stars45/Weather.cpp')
-rw-r--r-- | Stars45/Weather.cpp | 4 |
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];
|