summaryrefslogtreecommitdiff
path: root/src/graph_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-09-04 23:02:52 +0000
committersmatz <smatz@openttd.org>2009-09-04 23:02:52 +0000
commit0bfea0646c93e627cbf2f358aea57dbf8eb8abfe (patch)
tree618ffc9ef0a15953d1b016302bef2643c9387722 /src/graph_gui.cpp
parentae9441aa4628e2e559ea8f7e490e13ea0be34bab (diff)
downloadopenttd-0bfea0646c93e627cbf2f358aea57dbf8eb8abfe.tar.xz
(svn r17420) -Codechange: replace assert() by assert_compile() where possible
Diffstat (limited to 'src/graph_gui.cpp')
-rw-r--r--src/graph_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp
index 0bd219d7b..8ba32105d 100644
--- a/src/graph_gui.cpp
+++ b/src/graph_gui.cpp
@@ -213,7 +213,7 @@ protected:
/* the colours and cost array of GraphDrawer must accomodate
* both values for cargo and companies. So if any are higher, quit */
- assert(GRAPH_MAX_DATASETS >= (int)NUM_CARGO && GRAPH_MAX_DATASETS >= (int)MAX_COMPANIES);
+ assert_compile(GRAPH_MAX_DATASETS >= (int)NUM_CARGO && GRAPH_MAX_DATASETS >= (int)MAX_COMPANIES);
assert(this->num_vert_lines > 0);
byte grid_colour = _colour_gradient[COLOUR_GREY][4];
@@ -1244,7 +1244,7 @@ static NWidgetBase *MakePerformanceDetailPanels(int *biggest_index)
STR_PERFORMANCE_DETAIL_TOTAL_TOOLTIP,
};
- assert(lengthof(performance_tips) == SCORE_END - SCORE_BEGIN);
+ assert_compile(lengthof(performance_tips) == SCORE_END - SCORE_BEGIN);
NWidgetVertical *vert = new NWidgetVertical();
for (int widnum = PRW_SCORE_FIRST; widnum <= PRW_SCORE_LAST; widnum++) {