diff --git a/code/gamesnd/gamesnd.cpp b/code/gamesnd/gamesnd.cpp index bbe1fd055e9..2d0623e9a48 100644 --- a/code/gamesnd/gamesnd.cpp +++ b/code/gamesnd/gamesnd.cpp @@ -1018,7 +1018,8 @@ void gamesnd_parse_entry(game_snd *gs, bool &orig_no_create, SCP_vectorsound_entries.empty() || existing_gs->sound_entries[0].filename[0] == '\0') { gs = existing_gs; - no_create = orig_no_create = true; + orig_no_create = true; // prevent sound from being appended in parse_sound_table + // (leave no_create as false because we are creating a new sound and we need all the fields to be filled out) } else { @@ -1033,7 +1034,7 @@ void gamesnd_parse_entry(game_snd *gs, bool &orig_no_create, SCP_vectorname = std::move(name); } else