From c934f78758e20244ef669b764e54659bfcd81b9e Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Fri, 15 Jun 2007 21:26:17 +0000 Subject: * Fixed script command sc_end not supporting the extra argument as stated in script_commands.txt. * Script command getarg supports an extra argument with a default value that is returned if the requested argument doesn't exist. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10773 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/status.c') diff --git a/src/map/status.c b/src/map/status.c index 9b4e2cfd2..75f2cbdfe 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -6072,9 +6072,9 @@ int status_change_clear(struct block_list *bl,int type) case SC_JAILED: continue; } - status_change_end(bl, i, -1); + status_change_end(bl, i, INVALID_TIMER); - if (type == 1 && sc->data[i].timer != -1) + if( type == 1 && sc->data[i].timer != INVALID_TIMER ) { //If for some reason status_change_end decides to still keep the status when quitting. [Skotlex] (sc->count)--; delete_timer(sc->data[i].timer, status_change_timer); -- cgit v1.2.3-70-g09d2