mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user