From 2fc4ccf16765b2b5b8cb420c91da5c3e5e18d2e8 Mon Sep 17 00:00:00 2001 From: Wanne Date: Thu, 4 Apr 2013 21:25:50 +0000 Subject: [PATCH] - 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 --- Tactical/Soldier Profile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tactical/Soldier Profile.cpp b/Tactical/Soldier Profile.cpp index 35cf4795..a4159a10 100644 --- a/Tactical/Soldier Profile.cpp +++ b/Tactical/Soldier Profile.cpp @@ -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;