diff --git a/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/commands/addsubsheetcommand.cpp b/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/commands/addsubsheetcommand.cpp index d9d3a740..ba35b392 100644 --- a/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/commands/addsubsheetcommand.cpp +++ b/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/commands/addsubsheetcommand.cpp @@ -13,7 +13,7 @@ AddSubSheetCommand::AddSubSheetCommand( auto &parent = getSubSheet(m_img, m_parentIdx); if (!parent.subsheets.empty()) { auto idx = m_parentIdx; - idx.emplace_back(parent.subsheets.size()); + idx.emplace_back(static_cast(parent.subsheets.size())); m_addedSheets.push_back(idx); } else { auto idx = m_parentIdx; diff --git a/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp b/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp index ba53777c..aee2a581 100644 --- a/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp +++ b/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp @@ -278,7 +278,7 @@ void TileSheetEditorImGui::draw(studio::Context&) noexcept { auto insertOnIdx = m_model.activeSubSheetIdx(); auto const &parent = m_model.activeSubSheet(); m_model.addSubsheet(insertOnIdx); - insertOnIdx.emplace_back(parent.subsheets.size() - 1); + insertOnIdx.emplace_back(static_cast(parent.subsheets.size() - 1)); setActiveSubsheet(insertOnIdx); } ImGui::SameLine();