From c6336feed0e96854a9cc9952ad541a25589c15e1 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Thu, 3 Jan 2019 18:52:45 +0100 Subject: ... --- src/bounty/bnt_join_battle.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/bounty') diff --git a/src/bounty/bnt_join_battle.erl b/src/bounty/bnt_join_battle.erl index 1028166..71b6eb1 100644 --- a/src/bounty/bnt_join_battle.erl +++ b/src/bounty/bnt_join_battle.erl @@ -44,7 +44,7 @@ update_ordset (New, Old) -> -spec get_equipment_ids ( - orddict:orddict(non_neg_integer(), btl_character:type()) + list(btl_character:type()) ) -> { @@ -58,9 +58,9 @@ get_equipment_ids (Characters) -> UsedWeaponIDs, UsedArmorIDs } = - orddict:fold + lists:foldl ( - fun (_IX, Character, {UPIDs, UWIDs, UAIDs}) -> + fun (Character, {UPIDs, UWIDs, UAIDs}) -> {MWpID, SWpID} = btl_character:get_weapon_ids(Character), AID = btl_character:get_armor_id(Character), PID = btl_character:get_portrait_id(Character), -- cgit v1.2.3-70-g09d2