summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openttd.c b/openttd.c
index 17edaaf50..35f4eae8d 100644
--- a/openttd.c
+++ b/openttd.c
@@ -1020,11 +1020,11 @@ void GameLoop(void)
void BeforeSaveGame(void)
{
- Window *w = FindWindowById(WC_MAIN_WINDOW, 0);
+ const Window* w = FindWindowById(WC_MAIN_WINDOW, 0);
if (w != NULL) {
- _saved_scrollpos_x = WP(w,vp_d).scrollpos_x;
- _saved_scrollpos_y = WP(w,vp_d).scrollpos_y;
+ _saved_scrollpos_x = WP(w, const vp_d).scrollpos_x;
+ _saved_scrollpos_y = WP(w, const vp_d).scrollpos_y;
_saved_scrollpos_zoom = w->viewport->zoom;
}
}