diff --git a/src/gui/stages_panel.cpp b/src/gui/stages_panel.cpp index 6c3682b..8bf0b29 100644 --- a/src/gui/stages_panel.cpp +++ b/src/gui/stages_panel.cpp @@ -498,7 +498,7 @@ bool StagesPanel::HasDuplicateInternalName(const std::string &name, const Starpounds::WeightStage &stage = m_stages.at(selection); - for (const Starpounds::WeightStageSub sub : stage.GetSubs()) { + for (const Starpounds::WeightStageSub &sub : stage.GetSubs()) { if (sub.GetName() == name) return true; } diff --git a/src/speciesgen.cpp b/src/speciesgen.cpp index 6f16bbf..68458ee 100644 --- a/src/speciesgen.cpp +++ b/src/speciesgen.cpp @@ -393,7 +393,7 @@ void Frame::DoGenerateMod(wxCommandEvent &WXUNUSED(event)) { const Starbound::Item::Frames femaleFrames("chestf.png", "bsleevef.png", "fsleevef.png"); - for (Starpounds::WeightStage stage : stages) { + for (const Starpounds::WeightStage &stage : stages) { const std::string baseShortDescription = (stage.GetFriendlyName().empty() ? friendlySpecies