Hi all!
Sorry that it seems to be that I am asking tons of questions and not
contributing.. well sorry.. maybe I can once I get better:P
Anyways.. I have a bug in the do_home command I've made.. here's the code
I have for it:
ACMD(do_home)
{
struct descriptor_data *d;
sh_int load_room;
struct char_data *victim;
d = descriptor_list;
if (GET_LOADROOM(d->character) == 3005) {
send_to_char("You don't have a house!", ch);
return;
} else {
act("$n runs home!", TRUE, ch, 0, 0, TO_ROOM);
char_from_room(victim);
char_to_room(victim, GET_LOADROOM(d->character));
act("$n is glade to be home!", TRUE, ch, 0, 0, TO_ROOM);
look_at_room(victim, 0);
}
}
On the if (GET_LOADROOM(d->character) == 3005) { line I don't really
know what the LOADROOM would be set to in the begining... you know
Jeremy? (dumb question... of course you do!).
Anyways... I get a core dumb.. 17478 Bus error - core dumped
Then when I used GDB I get this:
Core was generated by `circle'.
Program terminated with signal 10, Bus error.
Couldn't read input and local registers from core file
Cannot access memory at address 0xef8022a8.
#0 0x5a0c in act (str=0x0, hide_invisible=0, ch=0x0, obj=0x0, vict_obj=0x0,
type=0) at comm.c:1656
1656 if (ch && ch->in_room != NOWHERE)
I get the impression that I'm doing the send_to_char thing wrong...
What do I do?
Thanks!
Myrddin
__
Corey Hoitsma AKA -= Myrddin =-
choitsma@netcom.com
Tazmania tazmania.ah.net 7000
This archive was generated by hypermail 2b30 : 12/18/00 PST