Skip to content

Commit 7f6c661

Browse files
Merge pull request #969 from SciML/dynamical
Fix Dynamical Remake by making _func_cache optional
2 parents b0b2e5c + 0422ce8 commit 7f6c661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/remake.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function remake(
187187

188188
props = @delete props.f2
189189

190-
if !ismissing(forig)
190+
if !ismissing(forig) && hasproperty(forig, :_func_cache)
191191
props = @delete props._func_cache
192192
props = @insert props._func_cache = forig._func_cache
193193
end

0 commit comments

Comments
 (0)