QTfrontend/model/ammoSchemeModel.cpp
branch0.9.21
changeset 10729 28d5cebdf660
parent 10727 5f34d3341fc1
child 10733 b22c57f45e86
--- 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]);