1
0
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:
Michał Janiszewski
2014-04-23 17:12:35 +02:00
parent 92a62368b5
commit bece1e5b1f

File diff suppressed because it is too large Load Diff