mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
Return string by copy to fix cases when string is constructed on stack
This commit is contained in:
@ -603,7 +603,7 @@ LegacyTextContainer::LegacyTextContainer(CGeneralTextHandler & owner, std::strin
|
||||
basePath(basePath)
|
||||
{}
|
||||
|
||||
const std::string & LegacyTextContainer::operator[](size_t index) const
|
||||
std::string LegacyTextContainer::operator[](size_t index) const
|
||||
{
|
||||
return owner.translate(basePath, index);
|
||||
}
|
||||
|
Reference in New Issue
Block a user