- bugfix: CTD when trying to recruit John & Mary and there is only one free place left in the whole team.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@617 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2006-11-05 00:32:06 +00:00
parent b09673988a
commit 1b25b0f093
2 changed files with 2 additions and 1 deletions
BIN
View File
Binary file not shown.
+2 -1
View File
@@ -4475,8 +4475,9 @@ void DialogueMessageBoxCallBack( UINT8 ubExitValue )
{
if ( ubProfile == JOHN )
{
// WANNE: Bugfix: CTD when recruting John and Mary and there is only one place left in the team.
// Mary might be alive, and if so we need to ensure two places
pSoldier = FindSoldierByProfileID( MARY, TRUE );
pSoldier = FindSoldierByProfileID( MARY, FALSE );
if ( pSoldier && !PlayerTeamHasTwoSpotsLeft() )
{
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_UI_FEEDBACK, TacticalStr[ CANNOT_RECRUIT_TEAM_FULL ] );