Bug#443822: I've found a fix (for: hex-a-hop: Got bt from a segfault :D)
Roland Clobus
rclobus at home.nl
Mon Dec 17 12:04:40 UTC 2007
---- Jens Seidel <jensseidel at users.sf.net> wrote:
...
> > --- 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;
> > + }
>
> Is this also save if numStages==0? I will try to check it during the
> next weekend and play some levels.
You are right, currentStage should also be limited to zero.
So another line from UpdateCurrent needs to be copied here too.
Regards,
Roland Clobus
More information about the Pkg-games-devel
mailing list