summaryrefslogtreecommitdiff
path: root/src/newgrf.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/newgrf.cpp
parentae9441aa4628e2e559ea8f7e490e13ea0be34bab (diff)
downloadopenttd-0bfea0646c93e627cbf2f358aea57dbf8eb8abfe.tar.xz
(svn r17420) -Codechange: replace assert() by assert_compile() where possible
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index a3003aee8..1e77d8a6e 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -5652,7 +5652,7 @@ static void InitNewGRFFile(const GRFConfig *config, int sprite_offset)
newfile->traininfo_vehicle_width = TRAININFO_DEFAULT_VEHICLE_WIDTH;
/* Copy the initial parameter list */
- assert(lengthof(newfile->param) == lengthof(config->param) && lengthof(config->param) == 0x80);
+ assert_compile(lengthof(newfile->param) == lengthof(config->param) && lengthof(config->param) == 0x80);
newfile->param_end = config->num_params;
memcpy(newfile->param, config->param, sizeof(newfile->param));