From b4136dd3d4779d80df18f84929c576c8080cd7b8 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 9 Dec 2013 20:28:19 -0200 Subject: Fixed some logic errors Special Thanks to Haru Signed-off-by: shennetsind --- src/map/clif.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index 4e10e2eea..41ba732fe 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -11088,8 +11088,10 @@ void clif_parse_RemoveOption(int fd,struct map_session_data *sd) void clif_parse_ChangeCart(int fd,struct map_session_data *sd) {// TODO: State tracking? int type; + + nullpo_retv(sd); - if( sd && pc->checkskill(sd, MC_CHANGECART) < 1 ) + if( pc->checkskill(sd, MC_CHANGECART) < 1 ) return; #ifdef RENEWAL -- cgit v1.2.3-70-g09d2