From a801efa946b76df8d3f52a2a2eb229e68487fa1f Mon Sep 17 00:00:00 2001
From: Steel Titanium <steeltitanium1@gmail.com>
Date: Sun, 23 Jun 2019 18:51:42 -0400
Subject: [PATCH] Forgot to do this.

---
 src/lua_maplib.c | 2 ++
 src/p_setup.c    | 1 +
 2 files changed, 3 insertions(+)

diff --git a/src/lua_maplib.c b/src/lua_maplib.c
index 27b97204f2..c5555009f8 100644
--- a/src/lua_maplib.c
+++ b/src/lua_maplib.c
@@ -2080,6 +2080,8 @@ static int mapheaderinfo_get(lua_State *L)
 		lua_pushinteger(L, header->levelflags);
 	else if (fastcmp(field,"menuflags"))
 		lua_pushinteger(L, header->menuflags);
+	else if (fastcmp(field,"startrings"))
+		lua_pushinteger(L, header->startrings);
 	// TODO add support for reading numGradedMares and grades
 	else {
 		// Read custom vars now
diff --git a/src/p_setup.c b/src/p_setup.c
index af4f1f9dd6..259cbfea33 100644
--- a/src/p_setup.c
+++ b/src/p_setup.c
@@ -209,6 +209,7 @@ static void P_ClearSingleMapHeaderInfo(INT16 i)
 	mapheaderinfo[num]->actnum = 0;
 	mapheaderinfo[num]->typeoflevel = 0;
 	mapheaderinfo[num]->nextlevel = (INT16)(i + 1);
+	mapheaderinfo[num]->startrings = 0;
 	snprintf(mapheaderinfo[num]->musname, 7, "%sM", G_BuildMapName(i));
 	mapheaderinfo[num]->musname[6] = 0;
 	mapheaderinfo[num]->mustrack = 0;
-- 
GitLab