diff options
author | darkvater <darkvater@openttd.org> | 2004-12-22 21:37:28 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2004-12-22 21:37:28 +0000 |
commit | 39727d6a81a0aca1c7eec4b44b4fc49d43c2db47 (patch) | |
tree | 915f2d9452c690d52429d7b093fda1870814ecbf | |
parent | fb345e983e644ed54dc16419dc86efb39afeaa1a (diff) | |
download | openttd-39727d6a81a0aca1c7eec4b44b4fc49d43c2db47.tar.xz |
(svn r1237) -Fix: Viewports crash when too many viewports are open. Their amount was not updated to reflect the updated windows amount (thx lefti)
-rw-r--r-- | viewport.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/viewport.h b/viewport.h index b21a4aa64..826e8c6c0 100644 --- a/viewport.h +++ b/viewport.h @@ -99,7 +99,8 @@ typedef struct TileHighlightData { bool HandlePlacePushButton(Window *w, int widget, uint32 cursor, int mode, PlaceProc *placeproc); /* viewport.c */ -VARDEF ViewPort _viewports[18]; +// XXX - maximum viewports is maximum windows - 2 (main toolbar + status bar) +VARDEF ViewPort _viewports[25 - 2]; VARDEF TileHighlightData _thd; VARDEF uint32 _active_viewports; |