From 4a0f5dfb22736246f19785707b5096893f3640ca Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 28 Sep 2019 14:19:29 +0200 Subject: [PATCH] racing in bounded geometries --- racing.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/racing.cpp b/racing.cpp index 218d4429..5263b811 100644 --- a/racing.cpp +++ b/racing.cpp @@ -1294,6 +1294,7 @@ EX int get_percentage(int i) { void draw_ghost_state(ghost& ghost) { auto& p = get_ghostmoment(ghost); + if(p.where_id >= isize(rti)) return; cell *w = rti[p.where_id].c; ld result = ghost_finished(ghost) ? 100 : get_percentage(w); draw_ghost_at(ghost, w, racerel(result), p);