From 3936b7a4a1b52037bd6b9f812a3350fd38062819 Mon Sep 17 00:00:00 2001 From: Rumble Date: Wed, 27 Aug 2008 15:46:33 +0000 Subject: [PATCH] Fixed mob using player pref. -Rumble --- changelog | 2 ++ src/dg_variables.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog b/changelog index cebf8d5..ce1ea94 100644 --- a/changelog +++ b/changelog @@ -36,6 +36,8 @@ Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist) (lots of major bugfixes too) @ tbaMUD 3.57 +[Aug 27 2008] - Rumble + Fixed Mob using '((c)->player_specials->saved.pref)' at dg_variables.c:860 [Aug 11 2008] - Rumble Updated World and files for 3.57 release. [Aug 10 2008] - Fizban diff --git a/src/dg_variables.c b/src/dg_variables.c index c4182fc..5767396 100644 --- a/src/dg_variables.c +++ b/src/dg_variables.c @@ -857,7 +857,7 @@ void find_replacement(void *go, struct script_data *sc, trig_data *trig, else if (!str_cmp(field, "pref") && IS_NPC(c)) { if (subfield && *subfield) { int pref = get_flag_by_name(preference_bits, subfield); - if (pref != NOFLAG && PRF_FLAGGED(c, pref)) + if (!IS_NPC(c) && pref != NOFLAG && PRF_FLAGGED(c, pref)) strcpy(str, "1"); else strcpy(str, "0");