mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +02:00
Return string by copy to fix cases when string is constructed on stack
This commit is contained in:
@ -139,7 +139,7 @@ void MetaString::getLocalString(const std::pair<ui8,ui32> &txt, std::string &dst
|
||||
switch(type)
|
||||
{
|
||||
case GENERAL_TXT:
|
||||
dst = VLC->generaltexth->translate("core.allTexts", ser);
|
||||
dst = VLC->generaltexth->translate("core.genrltxt", ser);
|
||||
break;
|
||||
case XTRAINFO_TXT:
|
||||
dst = VLC->generaltexth->translate("core.xtrainfo", ser);
|
||||
|
Reference in New Issue
Block a user