summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2019-05-03 15:37:21 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2019-05-03 15:37:21 +0200 |
commit | 70ae1dba72604469e9f9b528cf451734ac43baf6 (patch) | |
tree | 368efd594af22e59ee1181136b47110779d5030b | |
parent | 662c78ad90f5f3a8609201726955cec3f1e712e1 (diff) |
Fixes invalid test of already occupied location.
-rw-r--r-- | src/bounty/bnt_join_battle.erl | 9 |
1 files changed, 5 insertions, 4 deletions
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, |