From 74a63daf7e1e7bfa87d80d88c6055d7625d56afb Mon Sep 17 00:00:00 2001 From: Mitch Freeman <65987027+neckkola@users.noreply.github.com> Date: Sun, 3 Mar 2024 23:32:29 -0400 Subject: [PATCH] [Crash Fix] Groundspawn Memory Corruption (#4157) --- zone/zone.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/zone/zone.cpp b/zone/zone.cpp index 41f513602..2ec67403a 100644 --- a/zone/zone.cpp +++ b/zone/zone.cpp @@ -355,9 +355,7 @@ bool Zone::IsSpecialBindLocation(const glm::vec4& location) //this also just loads into entity_list, not really into zone bool Zone::LoadGroundSpawns() { - GroundSpawns g; - - memset(&g, 0, sizeof(g)); + GroundSpawns g{}; content_db.LoadGroundSpawns(zoneid, GetInstanceVersion(), &g);