diff --git a/src/dehacked.c b/src/dehacked.c
index a5fddfea2c3970396fc443c2ab2e17ba891fcbc1..bda0c38f73a73a7682424eab7ddb284d49386b22 100644
--- a/src/dehacked.c
+++ b/src/dehacked.c
@@ -1199,7 +1199,7 @@ static void readlevelheader(MYFILE *f, INT32 num)
 			else if (fastcmp(word, "MUSICPOS"))
 				mapheaderinfo[num-1]->muspos = (UINT32)get_number(word2);
 			else if (fastcmp(word, "MUSICINTERFADEOUT"))
-				mapheaderinfo[num-1]->musicinterfadeout = (UINT32)get_number(word2);
+				mapheaderinfo[num-1]->musinterfadeout = (UINT32)get_number(word2);
 			else if (fastcmp(word, "MUSICINTER"))
 				deh_strlcpy(mapheaderinfo[num-1]->musintername, word2,
 					sizeof(mapheaderinfo[num-1]->musintername), va("Level header %d: intermission music", num));
diff --git a/src/doomstat.h b/src/doomstat.h
index 82654ba1a5f519bf76c95b83d4b964829adc7aac..d9132798ffa33b6420e03fd37d575b500763c2ba 100644
--- a/src/doomstat.h
+++ b/src/doomstat.h
@@ -248,7 +248,7 @@ typedef struct
 	nightsgrades_t *grades; ///< NiGHTS grades. Allocated dynamically for space reasons. Be careful.
 
 	// Music stuff.
-	UINT32 musicinterfadeout;  ///< Fade out level music on intermission screen in milliseconds
+	UINT32 musinterfadeout;  ///< Fade out level music on intermission screen in milliseconds
 	char musintername[7];    ///< Intermission screen music.
 
 	// Lua stuff.
diff --git a/src/lua_maplib.c b/src/lua_maplib.c
index 2715f807fbdaffe870245097b19843e11e72c6cb..ba255ee1da5a0c99ab73483fdeba7500033a6318 100644
--- a/src/lua_maplib.c
+++ b/src/lua_maplib.c
@@ -1470,6 +1470,8 @@ static int mapheaderinfo_get(lua_State *L)
 		lua_pushinteger(L, header->mustrack);
 	else if (fastcmp(field,"muspos"))
 		lua_pushinteger(L, header->muspos);
+	else if (fastcmp(field,"musinterfadeout"))
+		lua_pushinteger(L, header->musinterfadeout);
 	else if (fastcmp(field,"musintername"))
 		lua_pushstring(L, header->musintername);
 	else if (fastcmp(field,"forcecharacter"))
diff --git a/src/p_setup.c b/src/p_setup.c
index 6afd2e6cc2802c5d5153e57dd77567d63e16fc6c..b2636c3505f0efb327c07ff92caf1b3ef8ee2086 100644
--- a/src/p_setup.c
+++ b/src/p_setup.c
@@ -189,8 +189,8 @@ static void P_ClearSingleMapHeaderInfo(INT16 i)
 	mapheaderinfo[num]->mustrack = 0;
 	DEH_WriteUndoline("MUSICPOS", va("%d", mapheaderinfo[num]->muspos), UNDO_NONE);
 	mapheaderinfo[num]->muspos = 0;
-	DEH_WriteUndoline("MUSICINTERFADEOUT", va("%d", mapheaderinfo[num]->musicinterfadeout), UNDO_NONE);
-	mapheaderinfo[num]->musicinterfadeout = 0;
+	DEH_WriteUndoline("MUSICINTERFADEOUT", va("%d", mapheaderinfo[num]->musinterfadeout), UNDO_NONE);
+	mapheaderinfo[num]->musinterfadeout = 0;
 	DEH_WriteUndoline("MUSICINTER", mapheaderinfo[num]->musintername, UNDO_NONE);
 	mapheaderinfo[num]->musintername[0] = '\0';
 	DEH_WriteUndoline("FORCECHARACTER", va("%d", mapheaderinfo[num]->forcecharacter), UNDO_NONE);
diff --git a/src/y_inter.c b/src/y_inter.c
index ab4c21692bb1bd1e3e0104f0be29a4bbf455ca13..1b7796efa097c37064679a60bd032574e7398995 100644
--- a/src/y_inter.c
+++ b/src/y_inter.c
@@ -697,8 +697,8 @@ void Y_Ticker(void)
 
 		if (!intertic) // first time only
 		{
-			if (mapheaderinfo[gamemap-1]->musicinterfadeout)
-				S_FadeOutStopMusic(mapheaderinfo[gamemap-1]->musicinterfadeout);
+			if (mapheaderinfo[gamemap-1]->musinterfadeout)
+				S_FadeOutStopMusic(mapheaderinfo[gamemap-1]->musinterfadeout);
 			else if (mapheaderinfo[gamemap-1]->musintername[0] && S_MusicExists(mapheaderinfo[gamemap-1]->musintername, !midi_disabled, !digital_disabled))
 				S_ChangeMusicInternal(mapheaderinfo[gamemap-1]->musintername, false); // don't loop it
 			else
@@ -764,8 +764,8 @@ void Y_Ticker(void)
 
 		if (!intertic) // first time only
 		{
-			if (mapheaderinfo[gamemap-1]->musicinterfadeout)
-				S_FadeOutStopMusic(mapheaderinfo[gamemap-1]->musicinterfadeout);
+			if (mapheaderinfo[gamemap-1]->musinterfadeout)
+				S_FadeOutStopMusic(mapheaderinfo[gamemap-1]->musinterfadeout);
 			else if (mapheaderinfo[gamemap-1]->musintername[0] && S_MusicExists(mapheaderinfo[gamemap-1]->musintername, !midi_disabled, !digital_disabled))
 				S_ChangeMusicInternal(mapheaderinfo[gamemap-1]->musintername, false); // don't loop it
 			else