diff options
author | tron <tron@openttd.org> | 2006-01-05 21:50:09 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-01-05 21:50:09 +0000 |
commit | cbe7f9771c3e1835c3270bc64f74f1b9235da648 (patch) | |
tree | 3517ff04f55d2138244edd613db114e0430496a6 | |
parent | 2053685fb5776afbd2fe25e2d03a560fe437d346 (diff) | |
download | openttd-cbe7f9771c3e1835c3270bc64f74f1b9235da648.tar.xz |
(svn r3368) Fix the same type of off-by-one error when checking, if the passed coordinate is on the map, like in r3357, but this time in DoCommandP - *cough* code duplication *cough*
-rw-r--r-- | command.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -404,7 +404,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, int y = TileY(tile) * 16; /* Do not even think about executing out-of-bounds tile-commands */ - if (tile > MapSize()) { + if (tile >= MapSize()) { _cmd_text = NULL; return false; } |