Fix a few warnings
This commit is contained in:
parent
c621589157
commit
621a72e698
18 changed files with 76 additions and 74 deletions
|
@ -927,7 +927,7 @@ int R_StitchPatches( int grid1num, int grid2num ) {
|
|||
|
||||
for (m = 0; m < 2; m++) {
|
||||
|
||||
if ( grid2->width >= MAX_GRID_SIZE )
|
||||
if ( !grid2 || grid2->width >= MAX_GRID_SIZE )
|
||||
break;
|
||||
if (m) offset2 = (grid2->height-1) * grid2->width;
|
||||
else offset2 = 0;
|
||||
|
@ -971,7 +971,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;
|
||||
|
@ -1026,7 +1026,7 @@ int R_StitchPatches( int grid1num, int grid2num ) {
|
|||
for (k = grid1->height-1; k > 1; k -= 2) {
|
||||
for (m = 0; m < 2; m++) {
|
||||
|
||||
if ( grid2->width >= MAX_GRID_SIZE )
|
||||
if ( !grid2 || grid2->width >= MAX_GRID_SIZE )
|
||||
break;
|
||||
if (m) offset2 = (grid2->height-1) * grid2->width;
|
||||
else offset2 = 0;
|
||||
|
|
|
@ -2915,7 +2915,7 @@ a single large text block that can be scanned for shader names
|
|||
static void ScanAndLoadShaderFiles( void )
|
||||
{
|
||||
char **shaderFiles;
|
||||
char *buffers[MAX_SHADER_FILES];
|
||||
char *buffers[MAX_SHADER_FILES] = {0};
|
||||
char *p;
|
||||
int numShaderFiles;
|
||||
int i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue