]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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 c003fb2c5f3228311ab9979b0d87a34cf6361836..9e805ef982519b8661a4bac9f2a3efe358b90d72 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)