diff options
author | peter1138 <peter1138@openttd.org> | 2006-05-02 13:35:23 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-05-02 13:35:23 +0000 |
commit | 73b718a667e033f49d76d7673fa2d4d67178a5df (patch) | |
tree | 56a60fd7b82b66af9acda06e5aded1cef55be37e | |
parent | b1f436df590d8807d9c4468cd5dfafd19469182e (diff) | |
download | openttd-73b718a667e033f49d76d7673fa2d4d67178a5df.tar.xz |
(svn r4674) - Codechange: use correct parameter order for allocating sound file memory
-rw-r--r-- | sound.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -35,7 +35,7 @@ static void OpenBankFile(const char *filename) FioOpenFile(SOUND_SLOT, filename); count = FioReadDword() / 8; - fe = calloc(sizeof(*fe), count); + fe = calloc(count, sizeof(*fe)); if (fe == NULL) { _file_count = 0; |