1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

mapeditor/inspector/inspector.cpp: Directly assign to the "std::optional", without dereferencing it.

Assigning to an optional should directly target the optiona
This commit is contained in:
Alexander Wilms 2023-10-28 10:16:33 +00:00
parent 3d8dd35d43
commit a6db82f6f1

View File

@ -685,7 +685,7 @@ void Inspector::setProperty(CGHeroPlaceholder * o, const QString & key, const QV
if(key == "Hero type")
{
o->heroType.value() = HeroTypeID(value.toInt());
o->heroType = HeroTypeID(value.toInt());
}
}