equal
deleted
inserted
replaced
330 { |
330 { |
331 int32 res; |
331 int32 res; |
332 CommandProc *proc; |
332 CommandProc *proc; |
333 |
333 |
334 /* Do not even think about executing out-of-bounds tile-commands */ |
334 /* Do not even think about executing out-of-bounds tile-commands */ |
335 if (TileVirtXY(x, y) > MapSize()) { |
335 if (TileVirtXY(x, y) >= MapSize()) { |
336 _cmd_text = NULL; |
336 _cmd_text = NULL; |
337 return CMD_ERROR; |
337 return CMD_ERROR; |
338 } |
338 } |
339 |
339 |
340 proc = _command_proc_table[procc].proc; |
340 proc = _command_proc_table[procc].proc; |