mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r1237) -Fix: Viewports crash when too many viewports are open. Their amount was not updated to reflect the updated windows amount (thx lefti)
This commit is contained in:
parent
fb345e983e
commit
39727d6a81
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user