summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-01 13:58:11 -0300
committershennetsind <ind@henn.et>2013-06-01 13:58:11 -0300
commita7ad5cc37f1b74708f1982839c4bfd932d0687b9 (patch)
tree89fb7636bc8e4dbfc0c4d526758edb76e0daaec1 /src/map/npc.c
parentd7e44b9b752e875bd37714309ee524f9700f7d2a (diff)
downloadhercules-a7ad5cc37f1b74708f1982839c4bfd932d0687b9.tar.gz
hercules-a7ad5cc37f1b74708f1982839c4bfd932d0687b9.tar.bz2
hercules-a7ad5cc37f1b74708f1982839c4bfd932d0687b9.tar.xz
hercules-a7ad5cc37f1b74708f1982839c4bfd932d0687b9.zip
Fixed Bug #7311
Special Thanks to mleo1, Masao!~ http://hercules.ws/board/tracker/issue-7311-hideonnpc-not-working/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index cb26bd75c..75aab5550 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -197,8 +197,7 @@ int npc_enable(const char* name, int flag)
{
struct npc_data* nd = npc_name2id(name);
- if (nd==NULL)
- {
+ if ( nd == NULL ) {
ShowError("npc_enable: Attempted to %s a non-existing NPC '%s' (flag=%d).\n", (flag&3) ? "show" : "hide", name, flag);
return 0;
}