From c28f8c07374493de31e5581dcd53ad99a2ff917a Mon Sep 17 00:00:00 2001 From: nsensfel Date: Mon, 29 Apr 2019 17:43:18 +0200 Subject: Dialyzer error, compiles, some issues w/ client. Dialyzer says: bnt_join_battle.erl:103: The created fun has no local return bnt_join_battle.erl:122: The call shr_inventory:ataxia_add_equipment(shr_equipment:unresolved(),shr_inventory:type()) does not have an opaque term of type shr_equipment:type() as 1st argument bnt_join_battle.erl:310: Function repair_join_battle/6 will never be called shr_inventory:ataxia_add_equipment(shr_equipment:unresolved(),shr_inventory:type()) is defined, though... Still some hiccups with what is sent to the client. --- src/shared/reply/shr_add_weapon.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'src/shared/reply/shr_add_weapon.erl') diff --git a/src/shared/reply/shr_add_weapon.erl b/src/shared/reply/shr_add_weapon.erl index 44a83dd..bd8dfb5 100644 --- a/src/shared/reply/shr_add_weapon.erl +++ b/src/shared/reply/shr_add_weapon.erl @@ -25,6 +25,7 @@ generate (Weapon) -> {<<"nam">>, shr_weapon:get_name(Weapon)}, {<<"rmi">>, shr_weapon:get_minimum_range(Weapon)}, {<<"rma">>, shr_weapon:get_maximum_range(Weapon)}, + {<<"pri">>, shr_weapon:get_is_primary(Weapon)}, {<<"omni">>, shr_omnimods:encode(shr_weapon:get_omnimods(Weapon))} ] }. -- cgit v1.2.3-70-g09d2