diff options
author | rubidium <rubidium@openttd.org> | 2007-12-13 18:46:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-12-13 18:46:04 +0000 |
commit | a0f2366e4052dbcdfcd5931b60104efdcf8ba83e (patch) | |
tree | 559800253167a43a8051c35a9601c98276c5cca8 /src/window.cpp | |
parent | 98d18c533789031756d3aebb6753d683494d4688 (diff) | |
download | openttd-a0f2366e4052dbcdfcd5931b60104efdcf8ba83e.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.cpp | 2 |
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 |