* Roland Clobus <[EMAIL PROTECTED]> [2007-12-16 14:11:52 CET]:
> I have found a fix for the crashes (Most of them happen on complex laser
> levels).

 Great!!

> This fix will bring currentStage back into range after a call to
> Reset(double t)
> 
> The attached patch is written on the fully patched source code.

 Hmm, I wonder:

> --- hex_puzzzle.cpp   2007-12-16 13:19:47.000000000 +0100
> +++ hex_puzzle.fixed.cpp      2007-12-16 13:19:05.000000000 +0100
> @@ -602,6 +602,9 @@
>               {
>                       while (numStages > 0 && time[numStages-1] >= t)
>                               numStages--;
> +                     if (currentStage > 0 && currentStage >= numStages) {
> +                             currentStage = numStages - 1;
> +                     }

 Isn't it possible for numStages to come to zero in the while loop,
making currentStage ending up with -1 in the if?

 So long,
Rhonda

_______________________________________________
Pkg-games-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-devel

Reply via email to