From ab025e88daed941b926fd8d9d9b824c22c32749c Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 30 Aug 2024 20:53:48 -0500 Subject: [PATCH] [nostalgia] Change Palette converter color idx to be 0 based --- src/nostalgia/modules/core/src/keel/typeconv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostalgia/modules/core/src/keel/typeconv.cpp b/src/nostalgia/modules/core/src/keel/typeconv.cpp index 61287324..b7d8f318 100644 --- a/src/nostalgia/modules/core/src/keel/typeconv.cpp +++ b/src/nostalgia/modules/core/src/keel/typeconv.cpp @@ -29,7 +29,7 @@ ox::Error PaletteV2ToPaletteV3Converter::convert( dst.pages = std::move(src.pages); if (!dst.pages.empty()) { for (size_t i = 0; i < dst.pages[0].size(); ++i) { - dst.colorInfo.emplace_back(ox::sfmt("Color {}", i)); + dst.colorInfo.emplace_back(ox::sfmt("Color {}", i + 1)); } } return {};