Obj_RainbowDashRingSpawn: Fix copypaste error that could have resulted in out-of-bounds access

This commit is contained in:
toaster 2023-11-06 14:47:54 +00:00
parent 5ffae81b08
commit bbe2477331

View file

@ -66,7 +66,7 @@ void Obj_RainbowDashRingSpawn(mobj_t *mobj)
void Obj_DashRingSetup(mobj_t *mobj, mapthing_t *mthing)
{
static const UINT8 numColors = sizeof(rainbow_colors) / sizeof(skincolornum_t);
static const UINT8 numColors = sizeof(ring_colors) / sizeof(skincolornum_t);
const UINT8 additionalThrust = mthing->thing_args[1];
statenum_t ringState, overlayState;