]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.c
Fix a crash when playing q2bsp maps where t->currentframe is dereferenced, and it...
[xonotic/darkplaces.git] / model_brush.c
index 6fd45ee75de43255a498c09a61b574287a017fc3..66cb6d0bac5465db8c88bc4cedf14ac6fc99d7fa 100644 (file)
@@ -4417,6 +4417,7 @@ static void Mod_Q2BSP_LoadTexinfo(sizebuf_t *sb)
        {
                int j;
                texture_t *t = loadmodel->data_textures + out->textureindex;
+               t->currentframe = t; // fix the reallocated pointer
 
                // if this is not animated, skip it
                // if this is already processed, skip it (part of an existing sequence)