diff options
author | Darkvater <darkvater@openttd.org> | 2006-12-30 01:14:00 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-12-30 01:14:00 +0000 |
commit | ed2c8ecef5f2a6d62273ebccf0f82bad1f73ea4a (patch) | |
tree | 92f27036ebc8f0f13918209d14cf815f12c9917e /newgrf.c | |
parent | a64f7dc354572a4e60c8b8f28e04759c9621877d (diff) | |
download | openttd-ed2c8ecef5f2a6d62273ebccf0f82bad1f73ea4a.tar.xz |
(svn r7636) -Cleanup: Remove unused window classes (sorry WC-mess) and use sizeof(array) instead
of X * sizeof(array[0])
Diffstat (limited to 'newgrf.c')
-rw-r--r-- | newgrf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3425,7 +3425,7 @@ static void InitNewGRFFile(const GRFConfig *config, int sprite_offset) /* Copy the initial parameter list */ assert(lengthof(newfile->param) == lengthof(config->param) && lengthof(config->param) == 0x80); newfile->param_end = config->num_params; - memcpy(newfile->param, config->param, 0x80 * sizeof(newfile->param[0])); + memcpy(newfile->param, config->param, sizeof(newfile->param)); if (_first_grffile == NULL) { _cur_grffile = newfile; |