Fix weapon schemes sometimes not being saved properly
authorWuzzy <Wuzzy2@mail.ru>
Sat, 11 Jan 2020 05:15:01 +0100
changeset 15542 3b0b6ce76303
parent 15541 d122b65bdf6f
child 15543 02f648f7cbe1
Fix weapon schemes sometimes not being saved properly
ChangeLog.txt
QTfrontend/ui/widget/selectWeapon.cpp
--- a/ChangeLog.txt	Sat Jan 11 01:06:41 2020 +0300
+++ b/ChangeLog.txt	Sat Jan 11 05:15:01 2020 +0100
@@ -11,6 +11,7 @@
  * A Space Adventure: The First Stop: Fix broken victory condition when eliminating minions
  * A Space Adventure: Killing the Specialists: Don't award player health if enemy hurts itself
  * Fix hog getting stuck when opening parachute right after a shoryuken digging through land
+ * Fix weapon schemes sometimes not being saved properly
 
 Lua:
  + Add RopeKnocking library
--- a/QTfrontend/ui/widget/selectWeapon.cpp	Sat Jan 11 01:06:41 2020 +0300
+++ b/QTfrontend/ui/widget/selectWeapon.cpp	Sat Jan 11 05:15:01 2020 +0100
@@ -331,6 +331,7 @@
         file.close();
     }
     emit weaponsEdited(curWeaponsName, m_name->text(), stateFull);
+    curWeaponsName = m_name->text();
 }
 
 int SelWeaponWidget::operator [] (unsigned int weaponIndex) const