Removed C99 dynamic arrays for MSVC compatibility.

This commit is contained in:
lotodore
2007-01-19 23:23:25 +00:00
parent e715cde49f
commit 9df9b8eede
3 changed files with 9 additions and 6 deletions
+2 -1
View File
@@ -47,7 +47,7 @@ void Tools::getRandNumber(int start, int end, int howMany, int* randArray, bool
else {
int tempArray[end-start];
int *tempArray = new int[end-start];
int i;
for (i=0; i<(end-start); i++) tempArray[i]=1;
@@ -67,6 +67,7 @@ void Tools::getRandNumber(int start, int end, int howMany, int* randArray, bool
}
delete[] tempArray;
}
}