Include NUM_REFLECTION_TYPES in the ReflectionTypes enum

This commit is contained in:
SphericalIce committed 2021-01-20 10:17:07 +00:00
1 parent 2746fd1f95
commit 4334f7a379
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -7514,7 +7514,7 @@ static void ObjectEventUpdateMetatileBehaviors(struct ObjectEvent *objEvent)
static void GetGroundEffectFlags_Reflection(struct ObjectEvent *objEvent, u32 *flags)
{
u32 reflectionFlags[NUM_REFLECTION_TYPES] = {
u32 reflectionFlags[NUM_REFLECTION_TYPES - 1] = {
[REFL_TYPE_ICE - 1] = GROUND_EFFECT_FLAG_ICE_REFLECTION,
[REFL_TYPE_WATER - 1] = GROUND_EFFECT_FLAG_WATER_REFLECTION
};