From eafdc200c85a4a3932be931a583207d9457f3113 Mon Sep 17 00:00:00 2001 From: yexo Date: Thu, 26 Feb 2009 20:30:41 +0000 Subject: (svn r15590) -Fix (r15584): _screenshot_name is an array, not a char * pointer. --- src/openttd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openttd.cpp b/src/openttd.cpp index 6bea34845..c78ee406d 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -715,7 +715,7 @@ void HandleExitGameRequest() static void ShowScreenshotResult(bool b) { if (b) { - extern char *_screenshot_name; + extern char _screenshot_name[]; SetDParamStr(0, _screenshot_name); ShowErrorMessage(INVALID_STRING_ID, STR_031B_SCREENSHOT_SUCCESSFULLY, 0, 0); } else { -- cgit v1.2.3-70-g09d2