Well, I inserted few printfs into code and I see that when loading the game, both codes are running - fully populating by names from lua file and then adding actual remaining names from savegame.
Maybe simple remaining_shipnames_.clear() on savegame load would do the trick. According to the printf, loading the savegame takes place after player initialization. But I am bit surprised, I thought the savegame logic is better designed.
Well, I inserted few printfs into code and I see that when loading the game, both codes are running - fully populating by names from lua file and then adding actual remaining names from savegame.
Maybe simple remaining_ shipnames_ .clear( ) on savegame load would do the trick. According to the printf, loading the savegame takes place after player initialization. But I am bit surprised, I thought the savegame logic is better designed.