diff --git a/bsx.cpp b/bsx.cpp index 87148cdf..a80bc8fa 100644 --- a/bsx.cpp +++ b/bsx.cpp @@ -1481,7 +1481,7 @@ void S9xInitBSX (void) // (for games that don't have it setup properly, // for exemple when taken seperately from the upper memory of the Memory Pack, // else the game will error out on BS-X) - for (; (header[0x10] & 1) == 0; (header[0x10] >>= 1)); + for (; (((header[0x10] & 1) == 0) && header[0x10] != 0); (header[0x10] >>= 1)); #ifdef BSX_DEBUG for (int i = 0; i <= 0x1F; i++)