From 396c12ee73193f4ac3665ecac2f634fc0b046697 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 16:46:21 +0000 Subject: Fixes for unsafe string handling, variable scoping errors. --- nGenEx/Water.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nGenEx/Water.cpp') 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); } -- cgit v1.1