diff options
Diffstat (limited to 'src/pathfinding.c')
| -rw-r--r-- | src/pathfinding.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
