try zero-initializinng this struct to solve docker issue

This commit is contained in:
jadebenn 2024-04-06 03:04:52 -05:00
parent 24cbd94a80
commit d6031ce9f5
2 changed files with 19 additions and 2 deletions

View File

@ -297,6 +297,23 @@
} }
], ],
"workflowPresets": [ "workflowPresets": [
{
"name": "default",
"steps": [
{
"type": "configure",
"name": "default"
},
{
"type": "build",
"name": "default"
},
{
"type": "test",
"name": "default"
}
]
},
{ {
"name": "ci-windows-2022", "name": "ci-windows-2022",
"displayName": "Windows CI Workflow", "displayName": "Windows CI Workflow",

View File

@ -102,7 +102,7 @@ void VanityUtilities::SpawnVanity() {
} }
LWOOBJID SpawnSpawner(const VanityObject& object, const VanityObjectLocation& location) { LWOOBJID SpawnSpawner(const VanityObject& object, const VanityObjectLocation& location) {
SceneObject obj; SceneObject obj {};
obj.lot = object.m_LOT; obj.lot = object.m_LOT;
// guratantee we have no collisions // guratantee we have no collisions
do { do {
@ -268,7 +268,7 @@ void ParseXml(const std::string& file) {
for (auto* location = locations->FirstChildElement("location"); location != nullptr; for (auto* location = locations->FirstChildElement("location"); location != nullptr;
location = location->NextSiblingElement("location")) { location = location->NextSiblingElement("location")) {
// Get the location data // Get the location data
auto zoneID = GeneralUtils::TryParse<uint32_t>(location->Attribute("zone")); auto zoneID = GeneralUtils::TryParse<uint32_t>(location->Attribute("zone"));
auto x = GeneralUtils::TryParse<float>(location->Attribute("x")); auto x = GeneralUtils::TryParse<float>(location->Attribute("x"));