Re: Weapon skill questions

zizazat@bbs.cedarnet.com
Date: 10/10/96


SA>-     if (!IS_NPC(ch) {
SA>-        if (GET_OBJ_VAL(GET_EQ(ch, WEAR_WIELD), 3) != TYPE_PIERCE -
SA>- TYPE_HIT) {

SA>If you're not wielding anything, GET_EQ(ch, WEAR_WIELD) is null, so the
SA>GET_OBJ_VAL macro will segfault.  GDB will catch little mistakes like this
SA>every time :)

I should learn how to use GDB I guess. I tried it a few times, but it
did not make much sense. I do not suppose that anyone has some good tips
on using such a thing?

So, should I move the (!wielded) check up to the top or what?

--Ziz, NetShamen



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



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