From 8c6893cff6ecdae6d95a2ddfa2edae8e3d803da4 Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 18 Oct 2025 23:04:09 +0200 Subject: [PATCH] init taglists in P_LoadMapData no reason to init them in P_SpawnSpecials fixes join crashes on some maps --- src/p_setup.c | 1 + src/p_spec.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_setup.c b/src/p_setup.c index 2ccbd1821..5cf9fef39 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -1983,6 +1983,7 @@ static void P_LoadMapData(const virtres_t* virt) P_LoadLinedefs(virtlinedefs->data); P_LoadSidedefs(virtsidedefs->data); P_LoadThings(virtthings->data); + P_InitTagLists(); // Create xref tables for tags // Copy relevant map data for NetArchive purposes. spawnsectors = Z_Calloc(numsectors * sizeof(*sectors), PU_LEVEL, NULL); diff --git a/src/p_spec.c b/src/p_spec.c index 7b4b45358..cf2ca3e3e 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -5387,7 +5387,6 @@ void P_SpawnSpecials(INT32 fromnetsave, boolean reloadinggamestate) // set current weather curWeather = mapheaderinfo[gamemap-1]->weather; - P_InitTagLists(); // Create xref tables for tags P_SearchForDisableLinedefs(); // Disable linedefs are now allowed to disable *any* line P_SpawnScrollers(); // Add generalized scrollers