summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2020-05-29 21:05:42 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2020-05-29 21:05:42 +0200
commitd626afac1c72192403da9b190e14a140b09ecf2e (patch)
treecda516f03e5962e9a896944c0a5867cf87ab0c76 /src/balancer/struct
parent0c86b3f337a24e9936bfec0fe5dc127d7f6212d4 (diff)
Ensures things still compile with -Wall -Werror...
Diffstat (limited to 'src/balancer/struct')
-rw-r--r--src/balancer/struct/blc_weapon.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/balancer/struct/blc_weapon.erl b/src/balancer/struct/blc_weapon.erl
index 84d0383..23f6790 100644
--- a/src/balancer/struct/blc_weapon.erl
+++ b/src/balancer/struct/blc_weapon.erl
@@ -204,8 +204,8 @@ get_max_attribute_ratio (SpendablePoints, ?WEAPON_ATTRIBUTE_RANGE) ->
),
case (Contrib == 0) of
- true -> 0.0;
- false -> (SpendablePoints / Contrib) * 100.0
+ false -> (SpendablePoints / Contrib) * 100.0;
+ _ -> 0.0
end;
get_max_attribute_ratio (SpendablePoints, Attribute) ->
{AttMin, _AttDef, AttMax, AttCost} = blc_attribute:get_info(Attribute),