diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-17 20:04:26 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-17 20:04:26 +0000 |
commit | 590cab6d67e00e0620cf31fc8fbe5ed5ec1b7abf (patch) | |
tree | e4b9a39a7278173f882bec766cef6eb368bc84a8 /src/map/status.c | |
parent | b11b98f7fc5794b4b16627e7c83a46d05fe55d07 (diff) | |
download | hercules-590cab6d67e00e0620cf31fc8fbe5ed5ec1b7abf.tar.gz hercules-590cab6d67e00e0620cf31fc8fbe5ed5ec1b7abf.tar.bz2 hercules-590cab6d67e00e0620cf31fc8fbe5ed5ec1b7abf.tar.xz hercules-590cab6d67e00e0620cf31fc8fbe5ed5ec1b7abf.zip |
* Added temporary check to skill_delunitgroup to prevent crashes when 'group' is NULL and added some debug messages to track down the source of the crash (bugreport:3504).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14599 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c index 6778bf5b1..449ea8f56 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -6605,6 +6605,15 @@ int status_change_end(struct block_list* bl, enum sc_type type, int tid) if(sce->val2) {// erase associated land skill group = skill_id2group(sce->val2); + + if( group == NULL ) + { + ShowDebug("status_change_end: SC_DANCING is missing skill unit group (val1=%d, val2=%d, val3=%d, val4=%d, timer=%d, tid=%d, char_id=%d, map=%s, x=%d, y=%d). Please report this! (#3504)\n", + sce->val1, sce->val2, sce->val3, sce->val4, sce->timer, tid, + sd ? sd->status.char_id : 0, + mapindex_id2name(map_id2index(bl->m)), bl->x, bl->y); + } + sce->val2 = 0; skill_delunitgroup(group); } |