changeset 1877 | e7318705dd04 |
parent 1838 | 522076c550c0 |
child 1891 | 92a3b0aa0946 |
--- a/command.c Mon May 30 13:35:39 2005 +0000 +++ b/command.c Mon May 30 14:45:36 2005 +0000 @@ -428,6 +428,10 @@ // get pointer to command handler assert((cmd & 0xFF) < lengthof(_command_proc_table)); proc = _command_proc_table[cmd & 0xFF].proc; + if (proc == NULL) { + _cmd_text = NULL; + return false; + } // Some commands have a different output in dryrun than the realrun // e.g.: if you demolish a whole town, the dryrun would say okay.