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.h | |
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.h')
-rw-r--r-- | src/map/skill.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/skill.h b/src/map/skill.h index 04f2e8d28..fc7877be3 100644 --- a/src/map/skill.h +++ b/src/map/skill.h @@ -272,7 +272,8 @@ struct skill_unit_group *skill_unitsetting(struct block_list* src, short skillid struct skill_unit *skill_initunit (struct skill_unit_group *group, int idx, int x, int y, int val1, int val2); int skill_delunit(struct skill_unit *unit); struct skill_unit_group *skill_initunitgroup(struct block_list* src, int count, short skillid, short skilllv, int unit_id, int limit, int interval); -int skill_delunitgroup(struct skill_unit_group *group); +int skill_delunitgroup_(struct skill_unit_group *group, const char* file, int line, const char* func); +#define skill_delunitgroup(group) skill_delunitgroup_(group,__FILE__,__LINE__,__func__) int skill_clear_unitgroup(struct block_list *src); int skill_clear_group(struct block_list *bl, int flag); |