diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-10-05 14:37:06 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-10-05 14:37:06 +0000 |
commit | 63efe8b1c659a3b1491321bbfbd0d1731daf8e74 (patch) | |
tree | 426cec7f0841c0c28dae3d9ee6ddac07ba3effa1 /src/map/atcommand.c | |
parent | af15657c15e2f506a379d8a7babd4200c770e135 (diff) | |
download | hercules-63efe8b1c659a3b1491321bbfbd0d1731daf8e74.tar.gz hercules-63efe8b1c659a3b1491321bbfbd0d1731daf8e74.tar.bz2 hercules-63efe8b1c659a3b1491321bbfbd0d1731daf8e74.tar.xz hercules-63efe8b1c659a3b1491321bbfbd0d1731daf8e74.zip |
- Added function npc_unload_duplicates(), it unloads all npcs that are a duplicate of the passed one. For use with @unloadnpc to prevent crashes when you unload the npc that has duplicates.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8939 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index d0bf422e0..836f40f40 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -6234,6 +6234,7 @@ int atcommand_unloadnpc(const int fd, struct map_session_data* sd, }
if ((nd = npc_name2id(NPCname)) != NULL) {
+ npc_unload_duplicates(nd);
npc_unload(nd);
clif_displaymessage(fd, msg_txt(112)); // Npc Disabled.
} else {
|