summaryrefslogtreecommitdiff
path: root/src/emap/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/script.c')
-rw-r--r--src/emap/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emap/script.c b/src/emap/script.c
index 373c5ae..67c88e0 100644
--- a/src/emap/script.c
+++ b/src/emap/script.c
@@ -1948,7 +1948,7 @@ BUILDIN(emotion)
else if (script_hasdata(st, 4))
{
struct npc_data *nd = npc->name2id(script_getstr(st, 4));
- if (nd == NULL)
+ if (nd != NULL)
clif->emotion(&nd->bl,type);
}
else