Fix: soldiers without a face index should not use Character Dialogue that uses face index

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6963 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2014-02-22 19:02:26 +00:00
parent 201fcf4001
commit 71d85d8bb5
+4
View File
@@ -1631,6 +1631,10 @@ BOOLEAN TacticalCharacterDialogue( SOLDIERTYPE *pSoldier, UINT16 usQuoteNum )
}
}
// Flugente: if we don't have a face index, then don't do a dialogue here...
if ( pSoldier->iFaceIndex <= -1 )
return( FALSE );
return( CharacterDialogue( pSoldier->ubProfile, usQuoteNum, pSoldier->iFaceIndex, DIALOGUE_TACTICAL_UI, TRUE, FALSE ) );
}