Re: Weapon skill questions

From: Sammy (samedi@clark.net)
Date: 10/10/96


On Thu, 10 Oct 1996, Mud Admin wrote:

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

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

Sam

+-----------------------------------------------------------+
| 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