summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-15 09:00:02 +0000
committertron <tron@openttd.org>2005-11-15 09:00:02 +0000
commitb9729fb72ef38d39eac4fdbe00c50efe4b0fe0d2 (patch)
tree403f3895461c780ab3903620ba2129a83d43eaea /openttd.c
parent1b0091e0d29a59811522758c00b690f4f07b471b (diff)
downloadopenttd-b9729fb72ef38d39eac4fdbe00c50efe4b0fe0d2.tar.xz
(svn r3185) const
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;
}
}