this should probably work 0.9.21
authornemo
Tue, 30 Dec 2014 18:23:11 -0500
branch0.9.21
changeset 10729 28d5cebdf660
parent 10727 5f34d3341fc1
child 10731 bc359abe0484
this should probably work
QTfrontend/model/ammoSchemeModel.cpp
--- a/QTfrontend/model/ammoSchemeModel.cpp	Tue Dec 30 18:19:05 2014 -0500
+++ b/QTfrontend/model/ammoSchemeModel.cpp	Tue Dec 30 18:23:11 2014 -0500
@@ -852,8 +852,11 @@
         qWarning("Incorrect scheme cfg size");
         return;
     }
-
-    cfg[42] = cfg[42].mid(1);
+    
+    if (cfg[42].at(0)=='!')
+        cfg[42] = cfg[42].mid(1);
+    else
+        qDebug() <<  "Script param didn't start with !: " << cfg[42];
 
     for(int i = 0; i < cfg.size(); ++i)
         netScheme[i] = QVariant(cfg[i]);