summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index fcd8fcd34..7800fba84 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -707,7 +707,7 @@ int openttd_main(int argc, char *argv[])
BaseGraphics::SetSet({});
ErrorMessageData msg(STR_CONFIG_ERROR, STR_CONFIG_ERROR_INVALID_BASE_GRAPHICS_NOT_FOUND);
- msg.SetDParamStr(0, graphics_set.c_str());
+ msg.SetDParamStr(0, graphics_set);
ScheduleErrorMessage(msg);
}
}
@@ -766,7 +766,7 @@ int openttd_main(int argc, char *argv[])
usererror("Failed to find a sounds set. Please acquire a sounds set for OpenTTD. See section 1.4 of README.md.");
} else {
ErrorMessageData msg(STR_CONFIG_ERROR, STR_CONFIG_ERROR_INVALID_BASE_SOUNDS_NOT_FOUND);
- msg.SetDParamStr(0, sounds_set.c_str());
+ msg.SetDParamStr(0, sounds_set);
ScheduleErrorMessage(msg);
}
}
@@ -778,7 +778,7 @@ int openttd_main(int argc, char *argv[])
usererror("Failed to find a music set. Please acquire a music set for OpenTTD. See section 1.4 of README.md.");
} else {
ErrorMessageData msg(STR_CONFIG_ERROR, STR_CONFIG_ERROR_INVALID_BASE_MUSIC_NOT_FOUND);
- msg.SetDParamStr(0, music_set.c_str());
+ msg.SetDParamStr(0, music_set);
ScheduleErrorMessage(msg);
}
}