Skip to content

Commit

Permalink
quick fix due to old initialstate
Browse files Browse the repository at this point in the history
  • Loading branch information
zsunberg committed Oct 23, 2023
1 parent 433b08d commit 328c024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/POMDPTools/src/Simulators/sim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function default_init_obs(p::POMDP, s)
end

@generated function default_init_state(p::Union{MDP,POMDP})
if implemented(initialstate, Tuple{p, typeof(Random.default_rng())})
if implemented(initialstate, Tuple{p})
return :(rand(Random.default_rng(), initialstate(p)))
else
return quote
Expand Down

0 comments on commit 328c024

Please sign in to comment.