command.c
changeset 2809 83072edcaae4
parent 2772 593f2304e5ea
child 2819 f25fb6ee397f
equal deleted inserted replaced
2808:8ece7af41664 2809:83072edcaae4
   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;