Paul 11 lat temu
rodzic
commit
92c1dd5fd5
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      QGearsMain/src/data/QGearsBackgroundFile.cpp

+ 3 - 2
QGearsMain/src/data/QGearsBackgroundFile.cpp

@@ -206,8 +206,9 @@ namespace QGears
                 }
                 const PaletteFile::Page& palette_page(palette->getPage(it->palette_page));
                 bool firstColorHidden(false);
-                if (it->palette_page < PALETTE_ENTRY_COUNT) {
-                    firstColorHidden = bool(m_palette[it->palette_page]);
+                if (it->palette_page < PALETTE_ENTRY_COUNT) 
+                {
+                    firstColorHidden = m_palette[it->palette_page] > 0;
                 }
                 for (uint16 y(SPRITE_HEIGHT); y--;)
                 {