summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c
index de494a3..b2df6ac 100644
--- a/src/object.c
+++ b/src/object.c
@@ -465,7 +465,8 @@ LIGHTBLOCK* AddLightBlock(DISPLAYBLOCK *dptr, LIGHTBLOCK *lptr_to_add)
lfree = No;
larrayptr = &dptr->ObLights[0];
-
+ freelarrayptr = NULL;
+
for(i = MaxObjectLights; i!=0 && lfree == No; i--) {
if(*larrayptr == 0) {