From 088747ea817bb04fc77916cf4504c3dbf1baa570 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 6 May 2018 15:50:32 +0200 Subject: [PATCH] code style --- src/magic.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/magic.c b/src/magic.c index 4c2df4023..a8190dfa8 100644 --- a/src/magic.c +++ b/src/magic.c @@ -2390,8 +2390,9 @@ unit *get_clone(const unit * u) attrib *a = a_find(u->attribs, &at_clone); if (a != NULL) { unit *uc = (unit *)a->data.v; - if (uc->number > 0) + if (uc->number > 0) { return uc; + } } return NULL; } @@ -2400,7 +2401,7 @@ static bool is_moving_ship(ship * sh) { const unit *u = ship_owner(sh); - if (u) + if (u) { switch (getkeyword(u->thisorder)) { case K_ROUTE: case K_MOVE: @@ -2409,6 +2410,7 @@ static bool is_moving_ship(ship * sh) default: return false; } + } return false; }