summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2008-05-18 21:56:24 -0700
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:37 +0200
commita1766173183170289aa3ae777f8e39c535cfaa7e (patch)
tree5d183f2621603d72056b749da5b531a58e14eb44 /src/object.c
parentc948a593912fef46e2cea6da9b0dd0c7c36054c7 (diff)
Fixed a few warnings.
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) {