From 3767d1ce3e2b90d4eb667985c0997cb5293cc27e Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 30 Apr 2023 19:18:50 +0200 Subject: work --- src/pathfinding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pathfinding.c') diff --git a/src/pathfinding.c b/src/pathfinding.c index 63741e7..70b084b 100644 --- a/src/pathfinding.c +++ b/src/pathfinding.c @@ -8,7 +8,7 @@ static float distance_between(vec2f v1, vec2f v2) bool can_walk_at(float x, float y) { for (int i = 0; i < MAX_OBJECTS; i++) { - object o = objects[i]; + object o = loaded_map.objects[i]; if (!o.active) continue; if (x >= o.position.x && x < o.position.x + o.size.x && y >= o.position.y && y < o.position.y + o.size.y) return false; } -- cgit v1.2.3-70-g09d2