1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Fix text identifier for generic signs without custom text

This commit is contained in:
Ivan Savenko 2023-12-09 18:09:57 +02:00
parent 2261298d09
commit 2de7a3939a

View File

@ -937,7 +937,7 @@ void CGSignBottle::initObj(CRandomGenerator & rand)
{
auto vector = VLC->generaltexth->findStringsWithPrefix("core.randsign");
std::string messageIdentifier = *RandomGeneratorUtil::nextItem(vector, rand);
message.appendTextID(TextIdentifier("core", "randsign", messageIdentifier).get());
message.appendTextID(messageIdentifier);
}
if(ID == Obj::OCEAN_BOTTLE)