summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/clif.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 9c91e8300..a443fc34b 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
+2008/08/11
+ * Fixed right-click npc unload not unloading duplicates (bugreport:2014)
2008/08/09
* Fixed @noks leaking internal buffer contents (bugreport:1528)
* Now Novices without lvl5 basic skill can be partied (bugreport:1131)
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));