- Bugfix: Random stats for mercs were still applied even if they shouldn't

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5981 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2013-04-04 21:25:50 +00:00
parent 6bf3775c3b
commit 2fc4ccf167
+2 -2
View File
@@ -437,10 +437,10 @@ void RandomStats ()
INT8 bBaseAttribute = 0;
MERCPROFILESTRUCT * pProfile;
BOOLEAN randomStatsEnabled = FALSE;
for ( cnt = 0; cnt < NUM_PROFILES; cnt++ )
{
BOOLEAN randomStatsEnabled = FALSE;
// WANNE: Random Stats are based on the INI entry (MERCS_RANDOM_STATS)
if ((gGameExternalOptions.ubMercRandomStats == 1) || (gGameExternalOptions.ubMercRandomStats == 2 && gRandomStatsValue[cnt].Enabled))
randomStatsEnabled = TRUE;