From aeabd9b6ae7cd6b59d6c8d85609559f132a464ee Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 14 Dec 2007 02:57:54 +0000 Subject: - corrected Option_Xmas value in const.txt - Wand of Hermode now dispells buffs only of allies. - Fixed some null pointer checks in status_change_end. - Corrected a crashy Warning message. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11910 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/map/status.c') diff --git a/src/map/status.c b/src/map/status.c index f9237f565..91ae9eb06 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -5552,10 +5552,6 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val val2 = 50*val1; //aspd reduction break; - case SC_HERMODE: - status_change_clear_buffs(bl,1); - break; - case SC_REGENERATION: if (val1 == 1) val2 = 2; @@ -6206,10 +6202,8 @@ int status_change_end(struct block_list* bl, enum sc_type type, int tid) sc = status_get_sc(bl); status = status_get_status_data(bl); - nullpo_retr(0,sc); - nullpo_retr(0,status); - if(type < 0 || type >= SC_MAX || !(sce = sc->data[type])) + if(type < 0 || type >= SC_MAX || !sc || !(sce = sc->data[type])) return 0; BL_CAST(BL_PC,bl,sd); -- cgit v1.2.3-70-g09d2