diff options
author | lordttseven <lordttseven@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-16 18:23:58 +0000 |
---|---|---|
committer | lordttseven <lordttseven@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-16 18:23:58 +0000 |
commit | 334ee0d80c09c6a840db235b5ac3d2d1709ac2f3 (patch) | |
tree | cd115f27e1f79fffe383fcdffbe96389cd929a40 /src | |
parent | 4a3c971a9ac25528e3a7e6bf57aa927dddd77118 (diff) | |
download | hercules-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
Diffstat (limited to 'src')
-rw-r--r-- | src/map/skill.c | 2 |
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. |