From a1766173183170289aa3ae777f8e39c535cfaa7e Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Sun, 18 May 2008 21:56:24 -0700 Subject: Fixed a few warnings. --- src/object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/object.c') 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) { -- cgit v1.3