summaryrefslogtreecommitdiff
path: root/sound.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-11-05 08:24:52 +0000
committertron <tron@openttd.org>2006-11-05 08:24:52 +0000
commit2a53bcf2b01afd81f336083d16f93c6177398fa2 (patch)
tree26ad191e57d6bb585a8b08b55819a3909380140d /sound.c
parent60ea083b28f5ef571243296c94b899f3038e8c03 (diff)
downloadopenttd-2a53bcf2b01afd81f336083d16f93c6177398fa2.tar.xz
(svn r7065) Use simple assignment instead of memcpy()
Diffstat (limited to 'sound.c')
-rw-r--r--sound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound.c b/sound.c
index f8d194c97..af8c6ca53 100644
--- a/sound.c
+++ b/sound.c
@@ -186,7 +186,7 @@ void SndCopyToPool(void)
FileEntry *orig = &_files[_sound_idx[i]];
FileEntry *fe = AllocateFileEntry();
- memcpy(fe, orig, sizeof(*orig));
+ *fe = *orig;
fe->volume = _sound_base_vol[i];
fe->priority = 0;
}