summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-02 23:36:33 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-02 23:36:33 +0000
commite30ac416720013db61f9a30d78884a86a7fc639b (patch)
treeccd3204a8aa87869e5e0e6ecb900752e050d172b /src/map
parente5a560e553e3604770ea7b0219859263882747a9 (diff)
downloadhercules-e30ac416720013db61f9a30d78884a86a7fc639b.tar.gz
hercules-e30ac416720013db61f9a30d78884a86a7fc639b.tar.bz2
hercules-e30ac416720013db61f9a30d78884a86a7fc639b.tar.xz
hercules-e30ac416720013db61f9a30d78884a86a7fc639b.zip
Fixed gcc warning on script.c, getnpcid
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15823 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index cae1d094b..950297d8a 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -6359,7 +6359,7 @@ BUILDIN_FUNC(getcharid)
BUILDIN_FUNC(getnpcid)
{
int num = script_getnum(st,2);
- struct npc_data* nd;
+ struct npc_data* nd = NULL;
if( script_hasdata(st,3) )
{// unique npc name