mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-25 21:38:59 +02:00
Remove magic number
This commit is contained in:
parent
5cd340ad85
commit
09e42cd9df
@ -189,9 +189,9 @@ void Unit::addNameReplacement(MetaString & text, const boost::logic::tribool & p
|
||||
if(boost::logic::indeterminate(plural))
|
||||
text.replaceName(creatureId(), getCount());
|
||||
else if(plural)
|
||||
text.replaceName(creatureIndex(), 2);
|
||||
text.replaceNamePlural(creatureIndex());
|
||||
else
|
||||
text.replaceName(creatureIndex(), 1);
|
||||
text.replaceNameSingular(creatureIndex());
|
||||
}
|
||||
|
||||
std::string Unit::formatGeneralMessage(const int32_t baseTextId) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user