mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
fixed possible nullptr dereference
* Fixed a switch() statement in InfoBoxHeroData::getValueText that could result in nullptr dereference. If 'type' was HERO_MANA and 'hero' was nullptr, a fallthrough would occur to HERO_EXPERIENCE, where 'hero' would we be dereferenced. * Fixed line endings.
This commit is contained in: