Skip to content

Commit

Permalink
fix: also check existance of first world of a Dependency arrow #292
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Feb 25, 2025
1 parent 28da6ea commit 368b154
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/GameServer/Command/Dependency.lean
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ elab "Dependency" s:Parser.dependency : command => do
let some source := source?
| do
source? := some stx.getId
match (← getCurGame).worlds.nodes.get? stx.getId with
| some _ => pure ()
| none => logErrorAt stx m!"World `{stx.getId}` seems not to exist"
continue
let target := stx.getId
match (← getCurGame).worlds.nodes.get? target with
Expand Down

0 comments on commit 368b154

Please sign in to comment.