diff --git a/Tactical/Turn Based Input.cpp b/Tactical/Turn Based Input.cpp index 88c5682ff..c35bfa25a 100644 --- a/Tactical/Turn Based Input.cpp +++ b/Tactical/Turn Based Input.cpp @@ -6957,6 +6957,13 @@ void SwapMercPortraits ( SOLDIERTYPE *pSoldier, INT8 bDirection ) { ubTargetMerc = gTeamPanel[ bNewPosition ].ubID; + // Hey, you're dead. I don't want to swap with you. + if ( MercPtrs[ubTargetMerc]->stats.bLife <= 0 ) + { + RebuildCurrentSquad( ); + return; + } + // store face indexes iSourceFace = MercPtrs[ ubSourceMerc ]->iFaceIndex; iTargetFace = MercPtrs[ ubTargetMerc ]->iFaceIndex;