(Dr. Mario Fixes) Correct out of range crash when palette selection is anything but zero.

Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2020-10-28 14:01:40 +00:00
parent 960d6ff181
commit 5631d2b367

View File

@ -25,7 +25,7 @@ namespace EightBit {
auto lowPriority() const { return !priority(); }
auto flipY() const { return !!(flags() & Chip::Bit6); }
auto flipX() const { return !!(flags() & Chip::Bit5); }
auto palette() const { return (flags() & Chip::Bit4) >> 3; }
auto palette() const { return (flags() & Chip::Bit4) >> 4; }
private:
uint8_t m_positionY;