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:
parent
3d8dd35d43
commit
a6db82f6f1
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user