From d6031ce9f5d9686673ef1cf4b5629dfffc311d6d Mon Sep 17 00:00:00 2001 From: jadebenn Date: Sat, 6 Apr 2024 03:04:52 -0500 Subject: [PATCH] try zero-initializinng this struct to solve docker issue --- CMakePresets.json | 17 +++++++++++++++++ dGame/dUtilities/VanityUtilities.cpp | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index fe155b52..e7850520 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -297,6 +297,23 @@ } ], "workflowPresets": [ + { + "name": "default", + "steps": [ + { + "type": "configure", + "name": "default" + }, + { + "type": "build", + "name": "default" + }, + { + "type": "test", + "name": "default" + } + ] + }, { "name": "ci-windows-2022", "displayName": "Windows CI Workflow", diff --git a/dGame/dUtilities/VanityUtilities.cpp b/dGame/dUtilities/VanityUtilities.cpp index cb893da3..54daa492 100644 --- a/dGame/dUtilities/VanityUtilities.cpp +++ b/dGame/dUtilities/VanityUtilities.cpp @@ -102,7 +102,7 @@ void VanityUtilities::SpawnVanity() { } LWOOBJID SpawnSpawner(const VanityObject& object, const VanityObjectLocation& location) { - SceneObject obj; + SceneObject obj {}; obj.lot = object.m_LOT; // guratantee we have no collisions do { @@ -268,7 +268,7 @@ void ParseXml(const std::string& file) { for (auto* location = locations->FirstChildElement("location"); location != nullptr; location = location->NextSiblingElement("location")) { - + // Get the location data auto zoneID = GeneralUtils::TryParse(location->Attribute("zone")); auto x = GeneralUtils::TryParse(location->Attribute("x"));