1
0
Fork 0

(svn r3357) Fix an off-by-one error in checking if a coordinate passed to a command is on the map

release/0.4.5
tron 2005-12-30 14:28:32 +00:00
parent 2a94a64711
commit 608e9a7203
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ int32 DoCommand(int x, int y, uint32 p1, uint32 p2, uint32 flags, uint procc)
CommandProc *proc;
/* Do not even think about executing out-of-bounds tile-commands */
if (TileVirtXY(x, y) > MapSize()) {
if (TileVirtXY(x, y) >= MapSize()) {
_cmd_text = NULL;
return CMD_ERROR;
}