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/Random.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nGenEx/Random.cpp') diff --git a/nGenEx/Random.cpp b/nGenEx/Random.cpp index 646b385..ccca097 100644 --- a/nGenEx/Random.cpp +++ b/nGenEx/Random.cpp @@ -125,7 +125,7 @@ int RandomShuffle(int count) tmp[i] = i; // shuffle the cards - for (i = 0; i < set_size; i++) { + for (int i = 0; i < set_size; i++) { int n = (int) Random(0, set_size); int tries = set_size; while (tmp[n] < 0 && tries--) { -- cgit v1.1