diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-12-31 13:07:22 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-12-31 13:07:22 +0000 |
commit | ccf5701ffb1d5d055254e6ec4bdae92ab4977cb2 (patch) | |
tree | 9d9338815816a03f4a5a360142e23ddfd6a5316b /src/map/npc.c | |
parent | 5178ca9df008ecff5e78fb52baddedac9c318702 (diff) | |
download | hercules-ccf5701ffb1d5d055254e6ec4bdae92ab4977cb2.tar.gz hercules-ccf5701ffb1d5d055254e6ec4bdae92ab4977cb2.tar.bz2 hercules-ccf5701ffb1d5d055254e6ec4bdae92ab4977cb2.tar.xz hercules-ccf5701ffb1d5d055254e6ec4bdae92ab4977cb2.zip |
- Added more info when npc_scriptcont tries to continue a different script.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9601 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 9ce3160f6..598cc8ee7 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1110,8 +1110,13 @@ int npc_scriptcont(struct map_session_data *sd,int id) { nullpo_retr(1, sd); - if (id!=sd->npc_id){ - ShowWarning("npc_scriptcont: sd->npc_id (%d) is not id (%d).\n", sd->npc_id, id); + if( id != sd->npc_id ){ + TBL_NPC* nd_sd=(TBL_NPC*)map_id2bl(sd->npc_id); + TBL_NPC* nd=(TBL_NPC*)map_id2bl(id); + if( nd_sd && nd ) + ShowWarning("npc_scriptcont: %s (sd->npc_id=%d) is not %s (id=%d).\n", nd_sd->name, sd->npc_id, nd->name, id); + else + ShowDebug("npc_scriptcont: Invalid npc ID, npc_id variable not cleared? %x (sd->npc_id=%d) is not %x (id=%d)\n", (int)nd_sd, sd->npc_id, (int)nd, id); return 1; } |