summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/clif.c2
-rw-r--r--src/map/npc.c7
-rw-r--r--src/map/pc.c2
3 files changed, 6 insertions, 5 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 662cfb580..2759f29ea 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -5961,7 +5961,7 @@ void clif_bladestop(struct block_list *src, int dst_id, int active)
{
unsigned char buf[32];
- nullpo_retr(0, src);
+ nullpo_retv(src);
WBUFW(buf,0)=0x1d1;
WBUFL(buf,2)=src->id;
diff --git a/src/map/npc.c b/src/map/npc.c
index 49ffa8e89..37cf06157 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -761,11 +761,12 @@ int npc_touch_areanpc(struct map_session_data* sd, int m, int x, int y)
snprintf(name, ARRAYLENGTH(name), "%s::OnTouch", map[m].npc[i]->exname); // It goes here too. exname being the unique identifier. [Lance]
- if( npc_event(sd,name,0)>0 ) {
- pc_stop_walking(sd,1); //Make it stop walking!
+ if( npc_event(sd,name,0) > 0 )
+ {// failed to run OnTouch event, so just click the npc
npc_click(sd,map[m].npc[i]);
}
- //aFree(name);
+
+ pc_stop_walking(sd,1); //Make it stop walking!
break;
}
}
diff --git a/src/map/pc.c b/src/map/pc.c
index 2c555a810..268a461c0 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4611,7 +4611,7 @@ static int pc_setstat(struct map_session_data* sd, int type, int val)
case SP_VIT: sd->status.vit = val; break;
case SP_INT: sd->status.int_ = val; break;
case SP_DEX: sd->status.dex = val; break;
- case SP_LUK: sd->status.luk = val;
+ case SP_LUK: sd->status.luk = val; break;
default:
return -1;
}