Next ball having a gradient palette as a color crashes the game
ShamblesSM opened this issue · 2 comments
ShamblesSM commented
To replicate, obtain a Wild Ball or a Fireball (or any sphere with a gradient palette) and swap spheres.
src/Shooter.lua:397: attempt to perform arithmetic on field 'colorSpeed' (a nil value)
Traceback:
crash.lua:51: in function 'handler'
src/Shooter.lua:397: in function 'getNextReticalColor'
src/Shooter.lua:285: in function 'draw'
src/Level.lua:769: in function 'draw'
src/Session.lua:93: in function 'draw'
src/Game.lua:189: in function 'draw'
main.lua:104: in function 'draw'
[C]: in function 'xpcall'
ShamblesSM commented
Created a PR that fixes this issue: #77
jakubg1 commented
Said PR has been merged, and thus this issue has been resolved.