From 327bf48e18e7c0e894119122525d10acad6f819a Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 4 Sep 2022 14:04:56 +0300 Subject: [PATCH 21/21] control.c: Drop unused 'old' variable From action_decision_clear_want() See osdn #45569 Signed-off-by: Marko Lindqvist --- client/control.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/control.c b/client/control.c index 0f2e7cb26d..82ce005c69 100644 --- a/client/control.c +++ b/client/control.c @@ -1039,9 +1039,7 @@ void action_selection_no_longer_in_progress(const int old_actor_id) **************************************************************************/ void action_decision_clear_want(const int old_actor_id) { - struct unit *old; - - if ((old = game_unit_by_number(old_actor_id))) { + if (game_unit_by_number(old_actor_id) != NULL) { /* Have the server record that a decision no longer is wanted. */ dsend_packet_unit_sscs_set(&client.conn, old_actor_id, USSDT_UNQUEUE, IDENTITY_NUMBER_ZERO); -- 2.35.1