From 334ee0d80c09c6a840db235b5ac3d2d1709ac2f3 Mon Sep 17 00:00:00 2001 From: lordttseven Date: Fri, 16 Mar 2012 18:23:58 +0000 Subject: * 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 --- src/map/skill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map') 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. -- cgit v1.2.3-70-g09d2