Fixed a few warnings.

This commit is contained in:
Steven Fuller 2008-05-18 21:56:24 -07:00 committed by Patryk Obara
parent c948a59391
commit a176617318
6 changed files with 15 additions and 14 deletions

View file

@ -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) {