summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2020-05-19 12:25:19 +0300
committerAndrei Karas <akaras@inbox.ru>2020-06-01 01:08:50 +0300
commitb648e49e821760502b5b5ae826b194c98b17d529 (patch)
tree3c75a18b8f79a20a8cbf41003fe15d3bab3f0df4 /src/map/npc.c
parent495f4b84f775030e189209704387ee97adb20ee0 (diff)
downloadhercules-b648e49e821760502b5b5ae826b194c98b17d529.tar.gz
hercules-b648e49e821760502b5b5ae826b194c98b17d529.tar.bz2
hercules-b648e49e821760502b5b5ae826b194c98b17d529.tar.xz
hercules-b648e49e821760502b5b5ae826b194c98b17d529.zip
fix motd on load/unload npc.
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 2f03623e4..30aeb616a 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -5728,8 +5728,10 @@ static bool npc_unloadfile(const char *filepath, bool unload_mobs)
dbi_destroy(iter);
- if (found) /// Refresh event cache.
+ if (found) { /// Refresh event cache.
+ npc->motd = npc->name2id("HerculesMOTD");
npc->read_event_script();
+ }
return found;
}