From eee4fa9e919989821b8efa6307e35a699da4bbf5 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 29 Aug 2016 20:53:53 +0100 Subject: [PATCH] I am pretty sure the phoenix doesn't work. --- src/items/phoenixcompass.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/items/phoenixcompass.c b/src/items/phoenixcompass.c index 86a4f50d9..571bfa6fd 100644 --- a/src/items/phoenixcompass.c +++ b/src/items/phoenixcompass.c @@ -49,13 +49,10 @@ int amount, struct order *ord) direction_t direction; unit *u2; direction_t closest_neighbour_direction = 0; - static const race *rc_phoenix = NULL; + const race *rc_phoenix = rc_find("phoenix"); - if (rc_phoenix == NULL) { - rc_phoenix = rc_find("phoenix"); - if (rc_phoenix == NULL) - return 0; - } + if (rc_phoenix == NULL) + return 0; /* find the closest phoenix. */