--- a/QTfrontend/ui/widget/gamecfgwidget.cpp Mon May 25 14:31:06 2015 -0400
+++ b/QTfrontend/ui/widget/gamecfgwidget.cpp Mon May 25 15:48:07 2015 -0400
@@ -459,7 +459,7 @@
if (param == "SCRIPT")
{
Scripts->setCurrentIndex(Scripts->findText(value));
- pMapContainer->setScript(Scripts->itemData(Scripts->currentIndex(), GameStyleModel::ScriptRole).toString().toUtf8());
+ pMapContainer->setScript(Scripts->itemData(Scripts->currentIndex(), GameStyleModel::ScriptRole).toString().toUtf8(), schemeData(43).toString());
return;
}
if (param == "DRAWNMAP")
@@ -661,12 +661,11 @@
}
if (!index)
{
- pMapContainer->setScript(QString(""));
+ pMapContainer->setScript(QString(""), QString(""));
}
else
{
- pMapContainer->setScript(name);
- pMapContainer->setScript(Scripts->itemData(index, GameStyleModel::ScriptRole).toString().toUtf8());
+ pMapContainer->setScript(Scripts->itemData(index, GameStyleModel::ScriptRole).toString().toUtf8(), schemeData(43).toString());
}
emit paramChanged("SCRIPT", QStringList(name));
}