diff options
author | bjarni <bjarni@openttd.org> | 2006-09-27 15:28:47 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-09-27 15:28:47 +0000 |
commit | 9c3e5266312193a6e023143ec35144baa598283e (patch) | |
tree | 73442ca0201c19cd9b19612fd02b48999639c67e | |
parent | c256566715bae14bdd3fd6b90d62d30353bac426 (diff) | |
download | openttd-9c3e5266312193a6e023143ec35144baa598283e.tar.xz |
(svn r6528) -Fix r6527: fixed an off by one error in an assert
-rw-r--r-- | depot_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/depot_gui.c b/depot_gui.c index 951141d27..d83e9119e 100644 --- a/depot_gui.c +++ b/depot_gui.c @@ -740,7 +740,7 @@ void ShowDepotWindow(TileIndex tile, byte type) Window *w; /* First we ensure that the widget counts are equal in all 3 lists to prevent bad stuff from happening */ - assert(lengthof(widget_moves) == lengthof(_depot_widgets)); + assert(lengthof(widget_moves) == lengthof(_depot_widgets) - 1); // we should not count WIDGETS_END assert(lengthof(widget_moves) == DEPOT_WIDGET_LAST); switch (type) { |