While answering a question about counting mobs in a room I noticed that
players never have their 'nr' variable set. The effect of this is that it
is 0 by way of the memset() in calloc(). However, multiple places in the
code check for GET_MOB_RNUM() == -1 for a PC, including the IS_MOB macro.
I've just confirmed with GDB that it is NOT correctly set to -1.
(gdb) p *character_list
$1 = {pfilepos = 0, nr = 0, in_room = 32, was_in_room = -1, player = {
passwd = "1234567890", name = 0x8293cc8 "Azalin", short_descr = 0x0,
long_descr = 0x0, description = 0x8293cb8 "",
title = 0x8293ca0 "the Implementor", sex = 1 '\001', class = 0 '\000',
I'll whip up a fix for it in the morning although I bet most people can do
it themselves.
--
George Greer - Me@Null.net | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard
+------------------------------------------------------------+
| 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