summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-11 11:00:24 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-11 11:00:24 +0000
commit6db2b95add66d72510c69fabfa1c6a0b9ac1b2ba (patch)
treec48c9938d101db318627a27a7ca732506ea9b7d2 /src
parent7b7cad3f3b85e76142f365ba8b56b42e95a8a6a1 (diff)
downloadhercules-6db2b95add66d72510c69fabfa1c6a0b9ac1b2ba.tar.gz
hercules-6db2b95add66d72510c69fabfa1c6a0b9ac1b2ba.tar.bz2
hercules-6db2b95add66d72510c69fabfa1c6a0b9ac1b2ba.tar.xz
hercules-6db2b95add66d72510c69fabfa1c6a0b9ac1b2ba.zip
Fixed right-click npc unload not unloading duplicates (bugreport:2014)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13070 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 8b6eb4267..341fa67c5 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -10396,7 +10396,10 @@ void clif_parse_GMKick(int fd, struct map_session_data *sd)
lv = get_atcommand_level(atcommand_unloadnpc);
if( pc_isGM(sd) < lv )
return;
+ // copy-pasted from atcommand_unloadnpc
+ npc_unload_duplicates(nd);
npc_unload(nd);
+ npc_read_event_script();
if( log_config.gm && lv >= log_config.gm ) {
char message[256];
sprintf(message, "/kick %s (%d)", status_get_name(target), status_get_class(target));