From 8f5039130ce42f060d950e83472170056f1cf87e Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 6 Feb 2017 21:48:41 -0500 Subject: [PATCH] Changed index naming order to ensure no out-of-bounds accesses. --- Machines/Atari2600/TIA.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Machines/Atari2600/TIA.hpp b/Machines/Atari2600/TIA.hpp index d6c18f2f4..599585ddb 100644 --- a/Machines/Atari2600/TIA.hpp +++ b/Machines/Atari2600/TIA.hpp @@ -113,8 +113,8 @@ class TIA { enum class ColourIndex { Background = 0, PlayfieldBall, - PlayerMissile1, - PlayerMissile0 + PlayerMissile0, + PlayerMissile1 }; uint8_t colour_palette_[4];