From d67f0cf3ec31baac73e22ea78bfa611fde3b78f7 Mon Sep 17 00:00:00 2001 From: bjarni Date: Wed, 27 Sep 2006 15:28:47 +0000 Subject: (svn r6528) -Fix r6527: fixed an off by one error in an assert --- depot_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3-70-g09d2