Re: {NEWBIE} [code bug]

From: Daniel Koepke (dkoepke@california.com)
Date: 01/26/97


On Sat, 25 Jan 1997, Justin Rio wrote:

> int invalid_class(struct char_data *ch, struct obj_data *obj) {
>   if ((IS_OBJ_STAT(obj, ITEM_ANTI_MAGIC_USER) && IS_MAGIC_USER(ch)) ||
>       (IS_OBJ_STAT(obj, ITEM_ANTI_CLERIC) && IS_CLERIC(ch)) ||
>       (IS_OBJ_STAT(obj, ITEM_ANTI_WARRIOR) && IS_WARRIOR(ch)) ||
>       (IS_OBJ_STAT(obj, ITEM_ANTI_THIEF) && IS_THIEF(ch))
>       (IS_OBJ_STAT(obj, ITEM_ANTI_BRUTE) && IS_BRUTE(ch)))
> 	return 1;
>   else
> 	return 0;
> }

You're missing the '||' (logical or) after the "IS_THIEF(ch))".


--
Daniel Koepke
dkoepke@california.com
Forgive me father, for I am sin.


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