diff options
author | Janne Karhu <jhkarh@gmail.com> | 2010-10-06 11:57:55 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2010-10-06 11:57:55 +0400 |
commit | 20d0236f10f1ae59734be692e7f42c188152f439 (patch) | |
tree | cfbc72474ec7f0f18647a47eba494623ad09c18a /source/blender/blenkernel | |
parent | fdadab10062cd9fbef6a6585fd19f344280a9d5b (diff) |
Fix for [#24134] pointcache memory error (crash)
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/pointcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c index e1006cd99cd..4ec12b3482c 100644 --- a/source/blender/blenkernel/intern/pointcache.c +++ b/source/blender/blenkernel/intern/pointcache.c @@ -1890,7 +1890,7 @@ int BKE_ptcache_write_cache(PTCacheID *pid, int cfra) } if(cache->cached_frames) - cache->cached_frames[cfra] = 1; + cache->cached_frames[cfra-cache->startframe] = 1; if(pf) ptcache_file_close(pf); |