Fixing bug in MIDI header - format was written in size of int instead of short

This commit is contained in:
zicodxx 2010-07-27 20:16:39 +00:00
parent 4f5d6ea605
commit f146a6b321
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,7 @@ D1X-Rebirth Changelog
--------
2d/pcx.c, include/pcx.h, main/cntrlcen.h, main/effects.c, main/fireball.c, main/fuelcen.h, main/gameseq.c, main/kmatrix.c, main/net_ipx.c, main/net_udp.c, main/render.c, main/segment.h, main/switch.c: Show main menu background for died in mine messagebox; equalise fuelcen.h and cntrlcen.h
arch/sdl/mouse.c: Fixing automatic mouse release function - still this does not seem to work in every case
misc/hmp.c: Fixing bug in MIDI header - format was written in size of int instead of short
20100726
--------

View file

@ -538,7 +538,7 @@ void hmp2mid(char *hmp_name, char *mid_name)
mi = MIDIINT(6);
PHYSFS_write(mid, &mi, sizeof(mi), 1);
ms = MIDISHORT(1);
PHYSFS_write(mid, &ms, sizeof(mi), 1);
PHYSFS_write(mid, &ms, sizeof(ms), 1);
ms = MIDISHORT(hmp->num_trks);
PHYSFS_write(mid, &ms, sizeof(ms), 1);
ms = MIDISHORT((short) 0xC0);