Re: Error in Room Dig-like Command

From: Peter Ajamian (peter@pajamian.dhs.org)
Date: 08/23/01


Jory Graham wrote:
>
>   add_to_save_list(zone_table[world[real_room(ch->in_room)].zone].number,
> SL_WLD);

At a glance this is what I saw in your code.  ch->in_room is already an
rnum, you it shouldn't be passed through real_room().  Also, you should
check for the existance of an exit beofre CREATE-ing a new one or you'll
end up with a memory leak.

Peter

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST