Fix a nasty problem with my last commit.

This commit is contained in:
adelikat 2010-06-13 19:48:17 +00:00
parent ca7f13d75e
commit 1159877a95
1 changed files with 1 additions and 1 deletions

View File

@ -693,7 +693,7 @@ void FCEUI_Emulate(uint8 **pXBuf, int32 **SoundBuf, int32 *SoundBufSize, int ski
UpdateLogWindow();
//FCEUI_AviVideoUpdate(XBuf);
extern int KillFCEUXonFrame;
if (FCEUMOV_GetFrame() >= KillFCEUXonFrame)
if (KillFCEUXonFrame && (FCEUMOV_GetFrame() >= KillFCEUXonFrame))
DoFCEUExit();
#endif