From b648e49e821760502b5b5ae826b194c98b17d529 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 19 May 2020 12:25:19 +0300 Subject: fix motd on load/unload npc. --- src/map/npc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map/npc.c') 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; } -- cgit v1.2.3-70-g09d2