Fix more warnings

This commit is contained in:
Tim Angus committed 2014-09-01 13:03:06 +01:00
1 parent 6665ea4a49
commit 7277d8d6e7
3 files changed
+8 -4

No files matched your search

+1 -1
View File
@@ -1614,7 +1614,7 @@ int R_StitchPatches( int grid1num, int grid2num ) {
}
for (m = 0; m < 2; m++) {
if (grid2->height >= MAX_GRID_SIZE)
if (!grid2 || grid2->height >= MAX_GRID_SIZE)
break;
if (m) offset2 = grid2->width-1;
else offset2 = 0;