Commit 0bb32ad7 authored by Erkin Bahceci's avatar Erkin Bahceci

Fix crash when changing setting.

parent 9733d4e0
......@@ -1433,10 +1433,10 @@ updateElementTextures (CompScreen *s,
}
iter = anim->id;
nElement = cCap->value[anim->id].i;
type = cType->value[anim->id].s;
size = cSize->value[anim->id].i;
speed = cSpeed->value[anim->id].i;
nElement = cCap->value[anim->id - 1].i;
type = cType->value[anim->id - 1].s;
size = cSize->value[anim->id - 1].i;
speed = cSpeed->value[anim->id - 1].i;
for (i = 0; i < anim->nTextures; i++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment