summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlordttseven <lordttseven@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-16 18:23:58 +0000
committerlordttseven <lordttseven@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-16 18:23:58 +0000
commit334ee0d80c09c6a840db235b5ac3d2d1709ac2f3 (patch)
treecd115f27e1f79fffe383fcdffbe96389cd929a40
parent4a3c971a9ac25528e3a7e6bf57aa927dddd77118 (diff)
downloadhercules-334ee0d80c09c6a840db235b5ac3d2d1709ac2f3.tar.gz
hercules-334ee0d80c09c6a840db235b5ac3d2d1709ac2f3.tar.bz2
hercules-334ee0d80c09c6a840db235b5ac3d2d1709ac2f3.tar.xz
hercules-334ee0d80c09c6a840db235b5ac3d2d1709ac2f3.zip
* fixed null pointer dereference in skill_name2id (bugreport:5455)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15692 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/skill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index cd7743789..918e15b2f 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -114,7 +114,7 @@ int skill_name2id(const char* name)
if( name == NULL )
return 0;
- return *(int*)strdb_get(skilldb_name2id, name);
+ return strdb_iget(skilldb_name2id, name);
}
/// Maps skill ids to skill db offsets.