Skip to content

Commit 38ed50a

Browse files
fix: fix variable_index
1 parent 26960c8 commit 38ed50a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/abstractsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ end
399399

400400
function SymbolicIndexingInterface.variable_index(sys::AbstractSystem, sym::Symbol)
401401
if has_index_cache(sys) && (ic = get_index_cache(sys)) !== nothing
402-
return get(ic.unknown_idx, h, nothing)
402+
return get(ic.unknown_idx, hash(sym), nothing)
403403
end
404404
idx = findfirst(isequal(sym), getname.(variable_symbols(sys)))
405405
if idx !== nothing

0 commit comments

Comments
 (0)