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 <memory>
#include <optional>
#include <unordered_map>
#if _MSC_VER
#pragma warning(default : 4062) // enumerator 'identifier' in switch of enum 'enumeration' is not handled
+7 -1
View File
@@ -46,7 +46,13 @@ MinifigWizard::MinifigWizard()
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()