Fixed infinite loop

This commit is contained in:
Andrei Drexler 2011-07-20 21:58:16 +00:00
parent 28096be527
commit 76483e3e6c

View file

@ -977,7 +977,6 @@ image_t *R_CreateImage2( const char *name, const byte *pic, int width, int heigh
qboolean mipmap, qboolean allowPicmip, int glWrapClampMode, qboolean cube ) {
image_t *image;
qboolean isLightmap = qfalse;
long hash;
if (strlen(name) >= MAX_QPATH ) {
ri.Error (ERR_DROP, "R_CreateImage: \"%s\" is too long", name);
@ -1046,10 +1045,6 @@ image_t *R_CreateImage2( const char *name, const byte *pic, int width, int heigh
GL_SelectTexture( 0 );
hash = generateHashValue(name);
image->next = hashTable[hash];
hashTable[hash] = image;
return image;
}