From cdffb7ceb30953ecec67e9e7faa6f3649da07634 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 2 May 2006 01:22:28 +0000 Subject: - Corrected a crash when sd is null in npc_event git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6440 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2