Protection for negative array index in find_seg_side was accidentially checking for vv1 != -1 - fixed that

This commit is contained in:
zicodxx 2011-01-21 17:45:26 +01:00
parent c7038983d5
commit 41a3d3971e
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,9 @@
D1X-Rebirth Changelog
20110121
--------
main/render.c: Protection for negative array index in find_seg_side was accidentially checking for vv1 != -1 - fixed that
20110120
--------
arch/sdl/jukebox.c, main/digi.h, main/menu.c, main/songs.c: Added a simple random function for the Jukebox; Removed one small printf I once added for debugging

View file

@ -919,7 +919,7 @@ int find_seg_side(segment *seg,short *verts,int notside)
}
}
if (vv0 == -1 || vv1 != -1)
if (vv0 == -1 || vv1 == -1)
return -1;
eptr = Edge_to_sides[vv0][vv1];