aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/map.c b/map.c
index a4974ac..143329c 100644
--- a/map.c
+++ b/map.c
@@ -661,7 +661,7 @@ void map_editor(Map *map, size_t *width, size_t *height, Position *start, Positi
if (m1down) {
size_t row = event.y - map_offset_y,
col = (event.x - map_offset_x) / 2;
- if (row < *height && col < *width) {
+ if (!((row == start->y && col == start->x) || (row == goal->y && col == goal->x)) && row < *height && col < *width) {
(*map)[row][col] = cur;
path_free(path, *height);
if (should_pathfind) {