1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-02 19:39:12 +00:00

(svn r4687) - Backport from trunk (r4674):

Codechange: use correct parameter order for allocating sound file memory
This commit is contained in:
Darkvater
2006-05-02 14:14:04 +00:00
parent 3d8b1c4fec
commit 343fdd71ef

View File

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