Fixed compiler warnings.

This commit is contained in:
Leonardo Zide
2026-03-13 21:34:32 -07:00
parent 49d2411253
commit b2a9a56bfe
2 changed files with 9 additions and 2 deletions
+1
View File
@@ -21,6 +21,7 @@
#include <functional> #include <functional>
#include <memory> #include <memory>
#include <optional> #include <optional>
#include <unordered_map>
#if _MSC_VER #if _MSC_VER
#pragma warning(default : 4062) // enumerator 'identifier' in switch of enum 'enumeration' is not handled #pragma warning(default : 4062) // enumerator 'identifier' in switch of enum 'enumeration' is not handled
+8 -2
View File
@@ -45,8 +45,14 @@ MinifigWizard::MinifigWizard()
Template.ColorCodes[PartIndex] = ColorCodes[PartIndex]; Template.ColorCodes[PartIndex] = ColorCodes[PartIndex];
Template.Angles[PartIndex] = 0.0f; Template.Angles[PartIndex] = 0.0f;
} }
memset(&mMinifig, 0, sizeof(mMinifig)); for (int PartIndex = 0; PartIndex < LC_MFW_NUMITEMS; PartIndex++)
{
mMinifig.Parts[PartIndex] = nullptr;
mMinifig.ColorIndices[PartIndex] = gDefaultColor;
mMinifig.Angles[PartIndex] = 0.0f;
mMinifig.Matrices[PartIndex] = lcMatrix44Identity();
}
} }
MinifigWizard::~MinifigWizard() MinifigWizard::~MinifigWizard()