diff options
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r-- | crawl-ref/source/travel.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc index 9b1f002631..e4e8a3f2e2 100644 --- a/crawl-ref/source/travel.cc +++ b/crawl-ref/source/travel.cc @@ -175,7 +175,7 @@ static void init_traps() { int x = env.trap[i].x, y = env.trap[i].y; - if (x > 0 && x < GXM && y > 0 && y < GYM) + if (inside_level_bounds(x,y)) curr_traps[x][y] = i; } traps_inited = true; |