From 37d14b0961719c938824f2bcded967c27e3a71bc Mon Sep 17 00:00:00 2001 From: gumi Date: Sun, 26 Feb 2017 10:32:43 -0500 Subject: fix indentation in script_array_src --- src/map/script.c | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/map/script.c b/src/map/script.c index 3394e0ed3..1e839e8f1 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -3117,29 +3117,29 @@ struct reg_db *script_array_src(struct script_state *st, struct map_session_data nullpo_retr(NULL, name); switch( name[0] ) { /* from player */ - default: /* char reg */ - case '@':/* temp char reg */ - case '#':/* account reg */ - nullpo_retr(NULL, sd); - src = &sd->regs; - break; - case '$':/* map reg */ - src = &mapreg->regs; - break; - case '.':/* npc/script */ - if (ref != NULL) { - src = ref; - } else { - nullpo_retr(NULL, st); - src = (name[1] == '@') ? &st->stack->scope : &st->script->local; - } - break; - case '\'':/* instance */ + default: /* char reg */ + case '@':/* temp char reg */ + case '#':/* account reg */ + nullpo_retr(NULL, sd); + src = &sd->regs; + break; + case '$':/* map reg */ + src = &mapreg->regs; + break; + case '.':/* npc/script */ + if (ref != NULL) { + src = ref; + } else { nullpo_retr(NULL, st); - if( st->instance_id >= 0 ) { - src = &instance->list[st->instance_id].regs; - } - break; + src = (name[1] == '@') ? &st->stack->scope : &st->script->local; + } + break; + case '\'':/* instance */ + nullpo_retr(NULL, st); + if( st->instance_id >= 0 ) { + src = &instance->list[st->instance_id].regs; + } + break; } if( src ) { -- cgit v1.2.3-70-g09d2