Hi guys, I’m new regarding Lua language but this error seems very odd to me. How could this happen?
[lua]
if board[boardRow][boardColumn].arrow then --Line 632
board[boardRow][boardColumn].arrow:removeSelf() --Line 633
[/lua]
main.lua:633: attempt to call method ‘removeSelf’ (a nil value)
stack traceback:
[C]: in function ‘removeSelf’
…s/main.lua:633: in function <…s/main.lua:604>
?: in function <?:229>
Program stopped (pid: 550).
The if is checking for different than null value and then why it is a null value? What happens?
Thanks!