mirror of https://github.com/OpenTTD/OpenTTD
(svn r6528) -Fix r6527: fixed an off by one error in an assert
parent
c256566715
commit
9c3e526631
|
@ -740,7 +740,7 @@ void ShowDepotWindow(TileIndex tile, byte type)
|
||||||
Window *w;
|
Window *w;
|
||||||
|
|
||||||
/* First we ensure that the widget counts are equal in all 3 lists to prevent bad stuff from happening */
|
/* 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);
|
assert(lengthof(widget_moves) == DEPOT_WIDGET_LAST);
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
|
Loading…
Reference in New Issue