summaryrefslogtreecommitdiff
path: root/game.adb
diff options
context:
space:
mode:
Diffstat (limited to 'game.adb')
-rw-r--r--game.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/game.adb b/game.adb
index 3d2f625..0c4b492 100644
--- a/game.adb
+++ b/game.adb
@@ -865,7 +865,7 @@ procedure Game is
begin
while Boss_Can_Stand_Here(Game, Position, Me) loop
Step(Dir, Position);
- if Game.Bosses(Me).Path(Position.Y, Position.X) = Current - 1 then
+ if Within_Map(Game, Position) and then Game.Bosses(Me).Path(Position.Y, Position.X) = Current - 1 then
Game.Bosses(Me).Position := Position;
exit Search;
end if;