jakubg1 / OpenSMCE

Game engine which allows creating a broad range of marble popper games.
MIT License
14 stars 11 forks source link

Next ball having a gradient palette as a color crashes the game #76

Closed ShamblesSM closed 1 year ago

ShamblesSM commented 1 year ago

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 1 year ago

Created a PR that fixes this issue: #77

jakubg1 commented 1 year ago

Said PR has been merged, and thus this issue has been resolved.