oops, forgot this annoying thing
authornemo
Sun, 15 Feb 2015 21:27:27 -0500
changeset 10826 bc5215b2f9fb
parent 10825 328486855d01
child 10827 2b717f687c72
oops, forgot this annoying thing
QTfrontend/model/ammoSchemeModel.cpp
QTfrontend/ui/widget/gamecfgwidget.cpp
--- a/QTfrontend/model/ammoSchemeModel.cpp	Sun Feb 15 15:35:46 2015 -0500
+++ b/QTfrontend/model/ammoSchemeModel.cpp	Sun Feb 15 21:27:27 2015 -0500
@@ -866,7 +866,7 @@
         return;
     }
 
-    cfg[42] = cfg[42].mid(1);
+    cfg[cfg.size()-1] = cfg[cfg.size()-1].mid(1);
 
     for(int i = 0; i < cfg.size(); ++i)
         netScheme[i] = QVariant(cfg[i]);
--- a/QTfrontend/ui/widget/gamecfgwidget.cpp	Sun Feb 15 15:35:46 2015 -0500
+++ b/QTfrontend/ui/widget/gamecfgwidget.cpp	Sun Feb 15 21:27:27 2015 -0500
@@ -587,7 +587,7 @@
 
     if (sl.size() >= 42)
     {
-        sl[42].prepend('!');
+        sl[sl.size()-1].prepend('!');
         emit paramChanged("SCHEME", sl);  // this is a stupid hack for the fact that SCHEME is being sent once, empty. Still need to find out why.
     }