From cdd82fcbcafc18f08eb2451905748c938eff1fb5 Mon Sep 17 00:00:00 2001 From: Asdow <20314541+Asdow@users.noreply.github.com> Date: Thu, 25 Sep 2025 10:16:39 +0300 Subject: [PATCH] Fix selecting soldiers via right click in editor --- Editor/EditorMercs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Editor/EditorMercs.cpp b/Editor/EditorMercs.cpp index 9c00c12da..21b6b500c 100644 --- a/Editor/EditorMercs.cpp +++ b/Editor/EditorMercs.cpp @@ -629,7 +629,7 @@ void HandleRightClickOnMerc( INT32 iMapIndex ) if ( gsSelectedMercID != sThisMercID ) { // We want to edit a new merc (or different merc) //We need to avoid the editing of player mercs. - pNode = FindSoldierInitNodeWithID( (UINT8)sThisMercID ); + pNode = FindSoldierInitNodeWithID( sThisMercID ); if( !pNode ) return; //this is a player merc (which isn't in the list), or an error in logic. IndicateSelectedMerc( sThisMercID ); @@ -1634,7 +1634,7 @@ void IndicateSelectedMerc( INT16 sID ) break; default: //search for the merc with the specific ID. - gpSelected = FindSoldierInitNodeWithID( (UINT8)sID ); + gpSelected = FindSoldierInitNodeWithID( sID ); if( !gpSelected ) { gsSelectedMercID = -1;