QTfrontend/model/ammoSchemeModel.cpp
branch0.9.21
changeset 10733 b22c57f45e86
parent 10729 28d5cebdf660
child 10822 def423815f24
--- a/QTfrontend/model/ammoSchemeModel.cpp	Thu Jan 01 12:41:28 2015 -0500
+++ b/QTfrontend/model/ammoSchemeModel.cpp	Fri Jan 02 00:14:49 2015 +0300
@@ -845,18 +845,15 @@
     return netScheme[index.column()];
 }
 
-void NetAmmoSchemeModel::setNetSchemeConfig(QStringList & cfg)
+void NetAmmoSchemeModel::setNetSchemeConfig(QStringList cfg)
 {
     if(cfg.size() != netScheme.size())
     {
         qWarning("Incorrect scheme cfg size");
         return;
     }
-    
-    if (cfg[42].at(0)=='!')
-        cfg[42] = cfg[42].mid(1);
-    else
-        qDebug() <<  "Script param didn't start with !: " << cfg[42];
+
+    cfg[42] = cfg[42].mid(1);
 
     for(int i = 0; i < cfg.size(); ++i)
         netScheme[i] = QVariant(cfg[i]);