mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-13 15:54:39 +01:00
(svn r4674) - Codechange: use correct parameter order for allocating sound file memory
This commit is contained in:
parent
b1f436df59
commit
73b718a667
2
sound.c
2
sound.c
@ -35,7 +35,7 @@ static void OpenBankFile(const char *filename)
|
|||||||
|
|
||||||
FioOpenFile(SOUND_SLOT, filename);
|
FioOpenFile(SOUND_SLOT, filename);
|
||||||
count = FioReadDword() / 8;
|
count = FioReadDword() / 8;
|
||||||
fe = calloc(sizeof(*fe), count);
|
fe = calloc(count, sizeof(*fe));
|
||||||
|
|
||||||
if (fe == NULL) {
|
if (fe == NULL) {
|
||||||
_file_count = 0;
|
_file_count = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user