- prevent redundant string copying in Strife conversation parser

strifedialogue.cpp:110:22: warning: loop variable 'addd' of type 'const FString' creates a copy from type 'const FString' [-Wrange-loop-analysis]
This commit is contained in:
alexey.lysiuk 2021-06-08 10:31:45 +03:00
parent e166eeb13d
commit 5b1c73e15f

View file

@ -107,7 +107,7 @@ void MapLoader::LoadStrifeConversations (MapData *map, const char *mapname)
{
// additive dialogues via MAPINFO
bool addedDialogues = false;
for (const FString addd : gameinfo.AddDialogues)
for (const FString &addd : gameinfo.AddDialogues)
{
if (!LoadScriptFile(addd, true, 0))
{