Re: [Code] Looping through Mobs.

From: Stephen Wolfe (siv@CYBERENET.NET)
Date: 07/16/98


>   for (mob = world[ch->in_room].people; mob || !found; mob = mob->next_in_room)

i think that the check here should be '!mob || found'..break if there are
no more mobs in the room or we found the right mob..

siv


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



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