Use std::string for LanguageMetadata::file

This commit is contained in:
Jonathan G Rennison
2024-01-05 22:21:02 +00:00
parent a573d065e1
commit 0460b820f3
4 changed files with 8 additions and 7 deletions

View File

@@ -403,7 +403,7 @@ void ReconsiderGameScriptLanguage()
if (_current_data == nullptr) return;
char temp[MAX_PATH];
strecpy(temp, _current_language->file, lastof(temp));
strecpy(temp, _current_language->file.c_str(), lastof(temp));
/* Remove the extension */
char *l = strrchr(temp, '.');