summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/Water.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nGenEx/Water.cpp')
-rw-r--r--nGenEx/Water.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/nGenEx/Water.cpp b/nGenEx/Water.cpp
index 41fa2f3..3b24f68 100644
--- a/nGenEx/Water.cpp
+++ b/nGenEx/Water.cpp
@@ -137,7 +137,7 @@ Water::Init(int n, float s, float d)
waves[3*WAVE_SIZE + i] = (float) (0.8 * s3*s3 - 0.4);
}
- for (i = 0; i < 4; i++) {
+ for (int i = 0; i < 4; i++) {
offsets[i] = (float) Random(0, WAVE_SIZE);
}