From d626afac1c72192403da9b190e14a140b09ecf2e Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Fri, 29 May 2020 21:05:42 +0200 Subject: Ensures things still compile with -Wall -Werror... --- src/balancer/struct/blc_weapon.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/balancer/struct/blc_weapon.erl') 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), -- cgit v1.2.3-70-g09d2