forked from len0rd/rockbox
state->savedboard doesn't exist, so revert that part of r18906 for now. It might be necessary to redo this fix properly. Also, state->currentboard is an array of shorts, so the memcpy() only covered half of it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18917 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9ae2561862
commit
68f3ad3454
1 changed files with 0 additions and 6 deletions
|
@ -601,9 +601,6 @@ void default_state(struct sudoku_state_t* state)
|
|||
|
||||
/* initialize the saved board so reload function works */
|
||||
rb->memcpy(state->savedboard,state->currentboard,81);
|
||||
#ifdef SUDOKU_BUTTON_POSSIBLE
|
||||
rb->memcpy(state->savedpossible,state->possiblevals,81);
|
||||
#endif
|
||||
|
||||
state->x=0;
|
||||
state->y=0;
|
||||
|
@ -1111,9 +1108,6 @@ bool sudoku_generate(struct sudoku_state_t* state)
|
|||
}
|
||||
/* initialize the saved board so reload function works */
|
||||
rb->memcpy(state->savedboard,state->currentboard,81);
|
||||
#ifdef SUDOKU_BUTTON_POSSIBLE
|
||||
rb->memcpy(state->savedpossible,state->possiblevals,81);
|
||||
#endif
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue