fix crashs on maps with missing textures
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 10 Nov 2002 02:34:19 +0000 (02:34 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 10 Nov 2002 02:34:19 +0000 (02:34 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2615 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index c003fb2..9e805ef 100644 (file)
@@ -245,6 +245,7 @@ static void Mod_LoadTextures (lump_t *l)
                        tx->flags = SURF_DRAWTURB | SURF_LIGHTBOTHSIDES;
                        tx->shader = &Cshader_water;
                }
+               tx->currentframe = tx;
        }
 
        // just to work around bounds checking when debugging with it (array index out of bounds error thing)