mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-01 00:45:26 +02:00
Crashes realted to illegal access to enemy hero data should be fixed, including #1178.
This commit is contained in:
@ -2764,6 +2764,9 @@ InfoAboutHero::InfoAboutHero(const InfoAboutHero & iah):
|
||||
}
|
||||
|
||||
InfoAboutHero::InfoAboutHero(const CGHeroInstance *h, bool detailed)
|
||||
: details(nullptr),
|
||||
hclass(nullptr),
|
||||
portrait(-1)
|
||||
{
|
||||
initFromHero(h, detailed);
|
||||
}
|
||||
|
Reference in New Issue
Block a user