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/skill.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/skill.c')
-rw-r--r-- | src/map/skill.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index e77703e1f..3c4cbcd21 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -10161,13 +10161,17 @@ struct skill_unit_group* skill_initunitgroup (struct block_list* src, int count, /*========================================== * *------------------------------------------*/ -int skill_delunitgroup (struct skill_unit_group *group) +int skill_delunitgroup_(struct skill_unit_group *group, const char* file, int line, const char* func) { struct block_list* src; struct unit_data *ud; int i,j; - nullpo_ret(group); + if( group == NULL ) + { + ShowDebug("skill_delunitgroup: group is NULL (source=%s:%d, %s)! Please report this! (#3504)\n", file, line, func); + return 0; + } src=map_id2bl(group->src_id); ud = unit_bl2ud(src); |