sdl: fix a segfault in the cheat menu (sf bug #242)
This commit is contained in:
parent
346802c327
commit
349a5bc905
|
@ -679,6 +679,15 @@ static int InitCheatComp(void)
|
||||||
void FCEUI_CheatSearchSetCurrentAsOriginal(void)
|
void FCEUI_CheatSearchSetCurrentAsOriginal(void)
|
||||||
{
|
{
|
||||||
uint32 x;
|
uint32 x;
|
||||||
|
|
||||||
|
if(!CheatComp)
|
||||||
|
{
|
||||||
|
if(InitCheatComp())
|
||||||
|
{
|
||||||
|
CheatMemErr();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
for(x=0x000;x<0x10000;x++)
|
for(x=0x000;x<0x10000;x++)
|
||||||
if(!(CheatComp[x]&CHEATC_NOSHOW))
|
if(!(CheatComp[x]&CHEATC_NOSHOW))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue