[CODE] do_order - one more possible crash bug

From: Andrey Fidrya (andrey@alex-ua.com)
Date: 06/27/99

Act.offensive.c, do_order:
Send_to_char(..., ch) is called at the end of function, but there is
possibility of mob killing ch passively (for example, casting fireball
or something like that) and send_to_char will crash the MUD
while trying to send text to no longer existant ch.
Currently I'm working on a fix. Will post it later.

One more minor cleanup:
} else {            /* This is order "followers" */
  sprintf(buf, "$n issues the order '%s'.", message);
- act(buf, FALSE, ch, 0, vict, TO_ROOM);
+ act(buf, FALSE, ch, 0, 0, TO_ROOM); /* Zmey: vict is NULL anyways */

Zmey // 3MoonsWorld (rmud.net.ru:4000)

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |

This archive was generated by hypermail 2b30 : 12/15/00 PST