[Crash Fix] Groundspawn Memory Corruption (#4157)

This commit is contained in:
Mitch Freeman 2024-03-03 23:32:29 -04:00 committed by GitHub
parent 8ee7910569
commit 74a63daf7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -355,9 +355,7 @@ bool Zone::IsSpecialBindLocation(const glm::vec4& location)
//this also just loads into entity_list, not really into zone //this also just loads into entity_list, not really into zone
bool Zone::LoadGroundSpawns() { bool Zone::LoadGroundSpawns() {
GroundSpawns g; GroundSpawns g{};
memset(&g, 0, sizeof(g));
content_db.LoadGroundSpawns(zoneid, GetInstanceVersion(), &g); content_db.LoadGroundSpawns(zoneid, GetInstanceVersion(), &g);