summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-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