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:
parent
47085e8d78
commit
86c7bab9c1
@ -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 "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user