From: havoc Date: Sun, 10 Nov 2002 02:34:19 +0000 (+0000) Subject: fix crashs on maps with missing textures X-Git-Tag: RELEASE_0_2_0_RC1~76 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=36b24254478cf1c5087e4fea5827613aa145d26f;p=xonotic%2Fdarkplaces.git fix crashs on maps with missing textures git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2615 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_brush.c b/model_brush.c index c003fb2c..9e805ef9 100644 --- a/model_brush.c +++ b/model_brush.c @@ -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)