Fix bug in special_notify(). Reproducable crash on win32 after exactly 40 flips or mirrors. Was (probably) corrupting an element in SDL_Surface *undo_bufs[].
This commit is contained in:
parent
e6b0b3ab8c
commit
f8fe5eeea0
1 changed files with 2 additions and 1 deletions
|
|
@ -17019,7 +17019,8 @@ void special_notify(int flags)
|
||||||
{
|
{
|
||||||
int tmp_int;
|
int tmp_int;
|
||||||
|
|
||||||
tmp_int = (cur_undo - 1) % NUM_UNDO_BUFS;
|
tmp_int = cur_undo - 1;
|
||||||
|
if (tmp_int < 0) tmp_int = NUM_UNDO_BUFS - 1;
|
||||||
|
|
||||||
if (flags & SPECIAL_MIRROR)
|
if (flags & SPECIAL_MIRROR)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue