1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fixed CID 1366324

This commit is contained in:
AlexVinS 2016-11-25 22:28:16 +03:00
parent 47085e8d78
commit 86c7bab9c1

View File

@ -148,9 +148,11 @@ std::string InfoBoxAbstractHeroData::getValueText()
si64 value = getValue();
if (value)
return CGI->generaltexth->levels[value];
else
return "";
}
default:
assert(0);
logGlobal->error("Invalid InfoBox info type");
}
return "";
}
@ -173,7 +175,7 @@ std::string InfoBoxAbstractHeroData::getNameText()
else
return "";
default:
assert(0);
logGlobal->error("Invalid InfoBox info type");
}
return "";
}