Fixed compiler warnings.
This commit is contained in:
@@ -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
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user