Re: [CODE] Crash bug in do_order

From: George Greer (greerga@circlemud.org)
Date: 06/27/99


On Sun, 27 Jun 1999, Andrey Fidrya wrote:

>The obvious solution is adding next_k variable
>and doing next_k = k->next at the beginning of
>cycle but it's not applicable here:
>If I order my charmie to cast fireball and both
>charmies (first one and the one after it) die -
>it will crash anyways because next_k will point
>to non-existant charmie. :(

Yet another argument to reap dead characters in the game_loop().

Sigh.

--
George Greer
greerga@circlemud.org


     +------------------------------------------------------------+
     | 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