aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/ModAPI.h
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/modplatform/ModAPI.h')
-rw-r--r--launcher/modplatform/ModAPI.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/launcher/modplatform/ModAPI.h b/launcher/modplatform/ModAPI.h
index 6a906aa4..8e6cd45c 100644
--- a/launcher/modplatform/ModAPI.h
+++ b/launcher/modplatform/ModAPI.h
@@ -61,10 +61,9 @@ class ModAPI {
{
QString s;
for(auto& ver : mcVersions){
- s += ver.toString();
- if(ver != mcVersions.back())
- s += ",";
+ s += QString("%1,").arg(ver.toString());
}
+ s.remove(s.length() - 1, 1); //remove last comma
return s;
}
};