Re: [hatari-devel] Big bug in the SDL UI |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
Le 28/06/2015 22:16, Eero Tamminen a écrit :
Invalid accesses don't happen because SDLGui_DoDialog() return value
is used in calling code as comparison value (mainly as switch() value),
not as-is for indexing an array.
No, the problem in SDLGui_DoDialog() was a bad indexing :
dlg[current_object].type
When dlg refer to the "do you want to reset" dialog, then dlg is in fact
alertdlg and it only has 8 member in the array, so refering to dlg[ 16
].type is an indexing error, not a switch problem.
Nicolas