mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Fix saving map settings (allowed abilities, spells, arts and heroes)
This commit is contained in:
@@ -81,7 +81,7 @@ void MapSettings::on_pushButton_clicked()
|
||||
auto updateMapArray = [](const QListWidget * widget, auto & arr)
|
||||
{
|
||||
arr.clear();
|
||||
for(int i = 0; i < arr.size(); ++i)
|
||||
for(int i = 0; i < widget->count(); ++i)
|
||||
{
|
||||
auto * item = widget->item(i);
|
||||
if (item->checkState() == Qt::Checked)
|
||||
|
Reference in New Issue
Block a user