summaryrefslogtreecommitdiff
path: root/src/spriteloader
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-30 11:40:54 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-06-13 10:26:58 +0200
commite588923bff12e0c46aaab72fdca3e8b5cb211081 (patch)
tree0388d8f8f4f4e4564d2b44e0300032c1327037ce /src/spriteloader
parentca9c50607eeca1657f7da4a06fe4486574e97139 (diff)
downloadopenttd-e588923bff12e0c46aaab72fdca3e8b5cb211081.tar.xz
Codechange: add std::string accepting SetDParamStr to ErrorMessageData
Diffstat (limited to 'src/spriteloader')
-rw-r--r--src/spriteloader/grf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spriteloader/grf.cpp b/src/spriteloader/grf.cpp
index fae87b87f..5a49a0c8a 100644
--- a/src/spriteloader/grf.cpp
+++ b/src/spriteloader/grf.cpp
@@ -35,7 +35,7 @@ static bool WarnCorruptSprite(const SpriteFile &file, size_t file_pos, int line)
{
static byte warning_level = 0;
if (warning_level == 0) {
- SetDParamStr(0, file.GetSimplifiedFilename().c_str());
+ SetDParamStr(0, file.GetSimplifiedFilename());
ShowErrorMessage(STR_NEWGRF_ERROR_CORRUPT_SPRITE, INVALID_STRING_ID, WL_ERROR);
}
DEBUG(sprite, warning_level, "[%i] Loading corrupted sprite from %s at position %i", line, file.GetSimplifiedFilename().c_str(), (int)file_pos);