remove duplicate findModuleDef from ShipLayoutPreview

This commit is contained in:
2026-08-03 22:00:25 +02:00
parent 785ce3ebfe
commit edd1c31785
3 changed files with 6 additions and 19 deletions

View File

@@ -18,7 +18,7 @@ public:
void setShipAndLayout(const std::vector<std::string>& shipLayout,
const ShipLayoutConfig& layout,
const std::vector<ModuleDef>* modules);
const ModulesConfig* modules);
void clear();
// Shows an empty placeholder box (no ship layout) so the preview stays
@@ -37,7 +37,7 @@ private:
std::vector<std::vector<CellInfo>> m_grid;
std::vector<PlacedModule> m_placedModules;
const std::vector<ModuleDef>* m_modules;
const ModulesConfig* m_modules;
int m_rows;
int m_cols;
bool m_placeholder = false;