summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-13 18:46:04 +0000
committerrubidium <rubidium@openttd.org>2007-12-13 18:46:04 +0000
commit2160338662b45c1add91a2c0dd8f03fef347dff0 (patch)
tree559800253167a43a8051c35a9601c98276c5cca8 /src/window.cpp
parentceabed7e7e6e09ad6e14f2b1b9f7a5281a61dae7 (diff)
downloadopenttd-2160338662b45c1add91a2c0dd8f03fef347dff0.tar.xz
(svn r11629) -Fix [FS#1527]: many viewports could crash the scenario editor.
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 958eb4475..f5b9ac041 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -22,7 +22,7 @@
/* delta between mouse cursor and upper left corner of dragged window */
static Point _drag_delta;
-static Window _windows[25];
+static Window _windows[MAX_NUMBER_OF_WINDOWS];
Window *_z_windows[lengthof(_windows)];
Window **_last_z_window; ///< always points to the next free space in the z-array