From 61674f9ac09dcba67ad1aad151a5dd179b0f6f9e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 22 Feb 2016 04:21:59 +0300 Subject: Fix wrong check in copy/pasted script function from hercules. --- src/emap/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2