From a609e1a26187f9a5276b39de85dd3043c5e03b70 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Sat, 20 Jun 2026 23:22:50 +0300
Subject: [PATCH 38/38] client: Close old access_info before reinitializing it

See RM #2058

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

diff --git a/client/packhand.c b/client/packhand.c
index 00250f9dbc..8c603580db 100644
--- a/client/packhand.c
+++ b/client/packhand.c
@@ -4693,6 +4693,7 @@ void handle_ruleset_terrain_control
   if (p->access_unit >= 0) {
     access_unit = utype_by_number(p->access_unit);
   }
+  access_info_close();
   access_info_init(access_unit);
 }
 
-- 
2.53.0

