diff options
author | Haru <haru@dotalux.com> | 2014-01-01 01:38:56 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-01-01 01:38:56 +0100 |
commit | c2f6086b1969f542459a1b685552d58a4d631f4b (patch) | |
tree | 10fe9f39fcb132078600d8348e0fb7c2f1346afe /src/map/npc.h | |
parent | 58e082d9d4dad54fd5f2f577fc4c7a49c0db6502 (diff) | |
download | hercules-c2f6086b1969f542459a1b685552d58a4d631f4b.tar.gz hercules-c2f6086b1969f542459a1b685552d58a4d631f4b.tar.bz2 hercules-c2f6086b1969f542459a1b685552d58a4d631f4b.tar.xz hercules-c2f6086b1969f542459a1b685552d58a4d631f4b.zip |
Correctly removed persistent database entries for disabled NPC Market scripts
- When a Market script is disabled or removed, its database entries are
now correctly cleared upon reloadscript and/or server restart.
- Special thanks to ossi0110.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/npc.h')
-rw-r--r-- | src/map/npc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/npc.h b/src/map/npc.h index 792d85d59..a3f07e79c 100644 --- a/src/map/npc.h +++ b/src/map/npc.h @@ -268,6 +268,7 @@ struct npc_interface { void (*market_fromsql) (void); void (*market_tosql) (struct npc_data *nd, unsigned short index); void (*market_delfromsql) (struct npc_data *nd, unsigned short index); + void (*market_delfromsql_sub) (const char *npcname, unsigned short index); /** * For the Secure NPC Timeout option (check config/Secure.h) [RR] **/ |