summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-22 04:21:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-22 04:21:59 +0300
commit61674f9ac09dcba67ad1aad151a5dd179b0f6f9e (patch)
tree0ed7cfaefbeb75e46e80734946bb05fbe8729a57 /src
parenta7a6a9f932c1d8da883a7744fc85ba10d4ecd3d3 (diff)
downloadevol-hercules-61674f9ac09dcba67ad1aad151a5dd179b0f6f9e.tar.gz
evol-hercules-61674f9ac09dcba67ad1aad151a5dd179b0f6f9e.tar.bz2
evol-hercules-61674f9ac09dcba67ad1aad151a5dd179b0f6f9e.tar.xz
evol-hercules-61674f9ac09dcba67ad1aad151a5dd179b0f6f9e.zip
Fix wrong check in copy/pasted script function from hercules.
Diffstat (limited to 'src')
-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