it's better to close file and return on non-void function
[xonotic/netradiant.git] / tools / quake3 / q3data / polyset.c
index d8a9f61..fcfc52a 100644 (file)
@@ -89,6 +89,7 @@ polyset_t *Polyset_LoadSets( const char *file, int *numpolysets, int maxTrisPerS
        }
        else{
                Error( "TRI files no longer supported" );
+               return NULL;
        }
 //             TRI_LoadPolysets( file, &psets, numpolysets );