From 0ae1b5751e1d3e7771c406f79dec4aaebe4c3136 Mon Sep 17 00:00:00 2001 From: wookieejedi Date: Wed, 14 Jan 2026 13:19:29 -0500 Subject: [PATCH] Fix regression from #7051 #7051 cleaned up the bomb/bomber targeting function, but also specified arguments for `TARGET_NEXT_CLOSEST_HOSTILE` to make it internally consistent with `TARGET_PREV_CLOSEST_HOSTILE`. There was a typo though, and the second argument needs to be `1` and not `0`. Having it be `0` makes 'Target Next Hostile' not work correctly. Tested fix and confirms this restores proper behavior. --- code/io/keycontrol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/io/keycontrol.cpp b/code/io/keycontrol.cpp index 92d30f28d63..d191caba4e4 100644 --- a/code/io/keycontrol.cpp +++ b/code/io/keycontrol.cpp @@ -2640,7 +2640,7 @@ int button_function(int n) // target the next hostile target case TARGET_NEXT_CLOSEST_HOSTILE: - hud_target_next_list(1,0); + hud_target_next_list(1,1); break; // target the previous closest hostile