Fix frontend not sending script param if empty
authorWuzzy <Wuzzy2@mail.ru>
Wed, 01 Nov 2017 00:03:18 +0100
changeset 12818 d6c75b27db58
parent 12817 59cb9bd8331c
child 12819 b4e20bb485f9
Fix frontend not sending script param if empty
QTfrontend/ui/widget/gamecfgwidget.cpp
--- a/QTfrontend/ui/widget/gamecfgwidget.cpp	Tue Oct 31 19:27:23 2017 +0100
+++ b/QTfrontend/ui/widget/gamecfgwidget.cpp	Wed Nov 01 00:03:18 2017 +0100
@@ -333,6 +333,8 @@
     bcfg << QString("e$mapgen %1").arg(mapgen).toUtf8();
     if(!schemeData(43).isNull())
         bcfg << QString("e$scriptparam %1").arg(schemeData(43).toString()).toUtf8();
+    else
+        bcfg << QString("e$scriptparam ").toUtf8();
 
 
     switch (mapgen)