diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/npc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 12c17de7a..e294f881b 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -822,8 +822,10 @@ int npc_event (struct map_session_data *sd, const unsigned char *eventname, int int xs,ys;
unsigned char mobevent[100];
- if (sd == NULL)
+ if (sd == NULL) {
nullpo_info(NLP_MARK);
+ return 0;
+ }
if (ev == NULL && eventname && strcmp(((eventname)+strlen(eventname)-9),"::OnTouch") == 0)
return 1;
|