From 36b24254478cf1c5087e4fea5827613aa145d26f Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 10 Nov 2002 02:34:19 +0000 Subject: [PATCH] fix crashs on maps with missing textures git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2615 d7cf8633-e32d-0410-b094-e92efae38249 --- model_brush.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.2