mirror of https://github.com/pret/pokeemerald.git
Include NUM_REFLECTION_TYPES in the ReflectionTypes enum
This commit is contained in:
parent
2746fd1f95
commit
4334f7a379
|
@ -20,9 +20,9 @@ enum ReflectionTypes
|
|||
{
|
||||
REFL_TYPE_NONE,
|
||||
REFL_TYPE_ICE,
|
||||
REFL_TYPE_WATER
|
||||
REFL_TYPE_WATER,
|
||||
NUM_REFLECTION_TYPES
|
||||
};
|
||||
#define NUM_REFLECTION_TYPES 2
|
||||
|
||||
#define FIGURE_8_LENGTH 72
|
||||
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue