> for(room = zone * 100;room <= zone_table[stored].top;room++) { > if(real_room(room)) { > for (mob = world[real_room(room)].people; mob; mob = next_mob) { > next_mob = mob->next_in_room; ok, you're probelm is the real_room call..real_room returns -1 (NOWHERE) if it doesn't find the room..and -1 would evaluate as TRUE in your if check..i would add in another var (or reuse 'i') and do this: if ((i = real_room(room)) != NOWHERE) for (mob = world[i].people...etc.. this would avoid making another real_room function call as well as solve your crash problem :) 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