From a3bbea34eea41cbbc30c7f544f01ff4a1f4f5def Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Sat, 20 Apr 2024 17:51:09 +0300
Subject: [PATCH 19/19] handle_investigate_started(): Fix dead assignment of
 unit_id32

See RM #489

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 client/packhand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/packhand.c b/client/packhand.c
index 92ed90a0b2..868fc21616 100644
--- a/client/packhand.c
+++ b/client/packhand.c
@@ -2221,8 +2221,8 @@ void handle_investigate_started(int unit_id16, int unit_id32,
   struct city *pcity;
 
   if (!has_capability("ids32", client.conn.capability)) {
-    unit_id32 = unit_id16;
     city_id32 = city_id16;
+    /* Unit id not used by this function. */
   }
 
   pcity = game_city_by_number(city_id32);
-- 
2.43.0

