mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- 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:
parent
e166eeb13d
commit
5b1c73e15f
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue