]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.c
fix an uninitialized variable
[xonotic/darkplaces.git] / model_brush.c
index e7673adad37a075b5d885ee5e8fde9bd24e177a6..d7fef5d50ff34b37edeec17b969fc7365b4ca80b 100644 (file)
@@ -4146,7 +4146,7 @@ static void Mod_Q3BSP_LoadShaders(void)
                                                {
                                                        int i;
                                                        layer->numframes = min(numparameters - 2, TEXTURE_MAXFRAMES);
-                                                       layer->framerate = atoi(parameter[1]);
+                                                       layer->framerate = atof(parameter[1]);
                                                        for (i = 0;i < layer->numframes;i++)
                                                                strlcpy(layer->texturename[i], parameter[i + 2], sizeof(layer->texturename));
                                                }