diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/script.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index 692b985b4..3f7b98aaa 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -5285,7 +5285,10 @@ int buildin_setoption(struct script_state *st) type=conv_num(st,& (st->stack->stack_data[st->start+2])); if(st->end>st->start+3 ) flag=conv_num(st,&(st->stack->stack_data[st->start+3]) ); - + else if (!type) { //Request to remove everything. + flag = 0; + type = OPTION_CART|OPTION_FALCON|OPTION_RIDING; + } sd=script_rid2sd(st); if (!sd) return 0; |