defold / sample-lights-and-shadows

Example of how to achieve pixel perfect shadows in a 2D view
MIT License
33 stars 5 forks source link

Fix nil index error when removing light #11

Closed paulbaucom closed 1 year ago

paulbaucom commented 1 year ago

Got a nil index when calling go.delete() on a game object with a lightsource.script component. This change fixes it.