summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2017-02-26 10:32:43 -0500
committergumi <mekolat@users.noreply.github.com>2017-02-26 12:00:45 -0500
commit37d14b0961719c938824f2bcded967c27e3a71bc (patch)
tree4328ec94ce14860560e403b1b0bfb8abba54fb6f
parent489281c3de7d4d2d9370f7352f6d3108c4681e89 (diff)
downloadhercules-37d14b0961719c938824f2bcded967c27e3a71bc.tar.gz
hercules-37d14b0961719c938824f2bcded967c27e3a71bc.tar.bz2
hercules-37d14b0961719c938824f2bcded967c27e3a71bc.tar.xz
hercules-37d14b0961719c938824f2bcded967c27e3a71bc.zip
fix indentation in script_array_src
-rw-r--r--src/map/script.c44
1 files 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 ) {