summaryrefslogtreecommitdiffhomepage
path: root/Stars45/CampaignMissionStarship.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/CampaignMissionStarship.cpp')
-rw-r--r--Stars45/CampaignMissionStarship.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Stars45/CampaignMissionStarship.cpp b/Stars45/CampaignMissionStarship.cpp
index 184ad00..74eb2be 100644
--- a/Stars45/CampaignMissionStarship.cpp
+++ b/Stars45/CampaignMissionStarship.cpp
@@ -875,7 +875,7 @@ CampaignMissionStarship::CreateTargetsCarrier()
RandomDirection() * Random( 50e3, 100e3);
- int ntargets = 2 + RandomChance() ? 1 : 0;
+ int ntargets = 2 + (RandomChance() ? 1 : 0);
int ntries = 8;
while (ntargets > 0 && ntries > 0) {
@@ -932,7 +932,7 @@ CampaignMissionStarship::CreateTargetsPatrol()
elem->AddNavPoint(n);
}
- int ntargets = 2 + RandomChance() ? 1 : 0;
+ int ntargets = 2 + (RandomChance() ? 1 : 0);
int ntries = 8;
while (ntargets > 0 && ntries > 0) {