- clear the Dehacked string table after passing it to GStrings.

For some reason std::move does not work here so make sure it won't stick around.
This commit is contained in:
Christoph Oelckers 2023-09-15 21:46:53 +02:00
commit 7f7edc4f72
3 changed files with 4 additions and 2 deletions

View file

@ -87,7 +87,7 @@ public:
void LoadStrings(const char *language);
void UpdateLanguage(const char* language);
StringMap GetDefaultStrings() { return allStrings[default_table]; } // Dehacked needs these for comparison
void SetOverrideStrings(StringMap && map)
void SetOverrideStrings(StringMap & map)
{
allStrings.Insert(override_table, map);
UpdateLanguage(nullptr);