summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-08-06 19:05:37 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-08-06 19:05:37 +0000
commitaec807d9ba3c67308ac10cfe0de8d1a4568e9aaa (patch)
treef80a26aa0d80b10f4b0c95081edd072908c874f7 /src/map/skill.c
parent6b459b8eeed83ca4c18782c85fa853993cc58731 (diff)
downloadhercules-aec807d9ba3c67308ac10cfe0de8d1a4568e9aaa.tar.gz
hercules-aec807d9ba3c67308ac10cfe0de8d1a4568e9aaa.tar.bz2
hercules-aec807d9ba3c67308ac10cfe0de8d1a4568e9aaa.tar.xz
hercules-aec807d9ba3c67308ac10cfe0de8d1a4568e9aaa.zip
* Added a null-pointer check to skill_initunit() to prevent a crash
* Added a while() loop to the client packet processor (for performance) * Added support for kRO 2007-05-14aSakexe langtype 0 login packet 0x2b0 * Added Job_Baby_Alchemist define to complement the Job_Alchemist update * Added custom Hollow Poring mob_db2 entry git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10954 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 500df9aec..5e76f581f 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -9684,6 +9684,7 @@ struct skill_unit *skill_initunit (struct skill_unit_group *group, int idx, int
struct skill_unit *unit;
nullpo_retr(NULL, group);
+ nullpo_retr(NULL, group->unit); // crash-protection against poor coding
nullpo_retr(NULL, unit=&group->unit[idx]);
if(!unit->alive)