diff --git a/landscape.c b/landscape.c --- a/landscape.c +++ b/landscape.c @@ -307,7 +307,7 @@ int32 CmdClearArea(int ex, int ey, uint3 int x,y; bool success = false; - if (p1 > MapSize()) return CMD_ERROR; + if (p1 >= MapSize()) return CMD_ERROR; SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION);