mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Finalization of refactoring:
- Entity interface now has getNameTranslated & getNameTextID methods - Entity interface no longer has getName method - removed (most) usages of normalizeIndentifier workaround method - all moddable objects have identifier in form of mod:name - all moddable object register strings in form of mod.type.name
This commit is contained in:
@ -1713,7 +1713,7 @@ void CGameState::initTowns()
|
||||
}
|
||||
if(vti->getNameTranslated().empty())
|
||||
{
|
||||
size_t nameID = getRandomGenerator().nextInt(vti->town->getRandomNamesCount());
|
||||
size_t nameID = getRandomGenerator().nextInt(vti->town->getRandomNamesCount() - 1);
|
||||
vti->setNameTranslated(vti->town->getRandomNameTranslated(nameID));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user