mirror of https://github.com/OpenTTD/OpenTTD
(svn r15590) -Fix (r15584): _screenshot_name is an array, not a char * pointer.
parent
1a940c24e3
commit
eafdc200c8
|
@ -715,7 +715,7 @@ void HandleExitGameRequest()
|
||||||
static void ShowScreenshotResult(bool b)
|
static void ShowScreenshotResult(bool b)
|
||||||
{
|
{
|
||||||
if (b) {
|
if (b) {
|
||||||
extern char *_screenshot_name;
|
extern char _screenshot_name[];
|
||||||
SetDParamStr(0, _screenshot_name);
|
SetDParamStr(0, _screenshot_name);
|
||||||
ShowErrorMessage(INVALID_STRING_ID, STR_031B_SCREENSHOT_SUCCESSFULLY, 0, 0);
|
ShowErrorMessage(INVALID_STRING_ID, STR_031B_SCREENSHOT_SUCCESSFULLY, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue