From f146a6b321eccc1e4848c9da1c37d34628302cea Mon Sep 17 00:00:00 2001 From: zicodxx <> Date: Tue, 27 Jul 2010 20:16:39 +0000 Subject: [PATCH] Fixing bug in MIDI header - format was written in size of int instead of short --- CHANGELOG.txt | 1 + misc/hmp.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d8ee24e28..f575705f3 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 -------- diff --git a/misc/hmp.c b/misc/hmp.c index 142c0bd16..eeb3a8363 100644 --- a/misc/hmp.c +++ b/misc/hmp.c @@ -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);