Fix a few warnings
This commit is contained in:
1 parent
c621589157
commit
621a72e698
18 files changed
+76
-74
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user