fix batmens for lynx

This commit is contained in:
goyuken 2014-10-10 01:17:47 +00:00
parent 00b3146615
commit 4868856160
2 changed files with 9 additions and 1 deletions

View File

@ -487,7 +487,15 @@ uint32 CMikie::DisplayEndOfFrame()
BlankLineSurface();
mpDisplayCurrentLine++;
}
std::memcpy(mpDisplayCurrent, framebuffer, sizeof(framebuffer));
if (mpDisplayCurrent)
{
std::memcpy(mpDisplayCurrent, framebuffer, sizeof(framebuffer));
}
else
{
// a game shouldn't be able to get two frames in in the length of time we traverse in a single
// call to advance. what is going on here?
}
mpDisplayCurrent = nullptr;
mpDisplayCurrentLine = 0;

Binary file not shown.