diff options
author | tron <tron@openttd.org> | 2005-11-15 09:00:02 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-11-15 09:00:02 +0000 |
commit | b9729fb72ef38d39eac4fdbe00c50efe4b0fe0d2 (patch) | |
tree | 403f3895461c780ab3903620ba2129a83d43eaea /openttd.c | |
parent | 1b0091e0d29a59811522758c00b690f4f07b471b (diff) | |
download | openttd-b9729fb72ef38d39eac4fdbe00c50efe4b0fe0d2.tar.xz |
(svn r3185) const
Diffstat (limited to 'openttd.c')
-rw-r--r-- | openttd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } } |