From 70ae1dba72604469e9f9b528cf451734ac43baf6 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Fri, 3 May 2019 15:37:21 +0200 Subject: Fixes invalid test of already occupied location. --- src/bounty/bnt_join_battle.erl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/bounty/bnt_join_battle.erl') diff --git a/src/bounty/bnt_join_battle.erl b/src/bounty/bnt_join_battle.erl index 7a2bb7c..b245bc4 100644 --- a/src/bounty/bnt_join_battle.erl +++ b/src/bounty/bnt_join_battle.erl @@ -134,10 +134,11 @@ add_characters (PlayerIX, RosterCharacters, Battle) -> ), { - [ - btl_character:get_location(NewCharacterRef) - |CurrentUsedLocations - ], + ordsets:add_element + ( + btl_character:get_location(NewCharacterRef), + CurrentUsedLocations + ), S1Battle, [ BattleAtaxiaUpdate0, -- cgit v1.2.3-70-g09d2