(svn r17420) -Codechange: replace assert() by assert_compile() where possible

This commit is contained in:
smatz
2009-09-04 23:02:52 +00:00
parent d3b8de0162
commit dc73d5432d
4 changed files with 5 additions and 5 deletions

View File

@@ -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));