I am getting this error when calling the highScores from the starts screen, the params used to call the function is highScores = self.highScores
Error
src/states/HighScoreState.lua:38: attempt to index field 'highScores' (a nil value)
Traceback
src/states/HighScoreState.lua:38: in function 'render'
src/StateMachine.lua:26: in function 'render'
main.lua:203: in function 'draw'
[C]: in function 'xpcall'
I am getting this error when calling the highScores from the starts screen, the params used to call the function is highScores = self.highScores
Error
src/states/HighScoreState.lua:38: attempt to index field 'highScores' (a nil value)
Traceback
src/states/HighScoreState.lua:38: in function 'render' src/StateMachine.lua:26: in function 'render' main.lua:203: in function 'draw' [C]: in function 'xpcall'