Update lights.c

Fix an incomplete merge.