#0 0x080c22fa in violence_update () at fight.c:373
373 ch->desc->character->desc = ch->desc;
(gdb) bt
#0 0x080c22fa in violence_update () at fight.c:373
#1 0x0812c468 in update_handler () at update.c:2023
#2 0x080a9cba in game_loop () at comm.c:690
#3 0x080a95b1 in main (argc=2, argv=0xbffff5d0) at comm.c:304
#4 0x42015967 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) print ch
$1 = (struct char_data *) 0x8349ef0
(gdb) print ch->name
$2 = 0x834fb20 "Arion"
(gdb) print ch->desc
$3 = (struct descriptor_data *) 0x836a390
(gdb) print ch->desc->port
$4 = 4839
(gdb) ch->desc->character->desc
Undefined command: "ch-". Try "help".
(gdb) print ch->desc->character->desc
Cannot access memory at address 0x4c
(gdb)
I don't get that at all. How can the char->desc be null but not ch->desc?
I had a post about something like this here:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4134
Is this related to that?