From 459a954c58e1bf9cb7359b617713f2057ceb024f Mon Sep 17 00:00:00 2001 From: nsensfel Date: Tue, 23 Apr 2019 14:29:20 +0200 Subject: ... --- src/bounty/bnt_join_battle.erl | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/bounty') diff --git a/src/bounty/bnt_join_battle.erl b/src/bounty/bnt_join_battle.erl index 78c4ea4..fa5d36e 100644 --- a/src/bounty/bnt_join_battle.erl +++ b/src/bounty/bnt_join_battle.erl @@ -429,17 +429,9 @@ add_to_pending_battle S1PendingBattle = btl_pending_battle:set_free_slots(RemainingSlots, S0PendingBattle), S2PendingBattle = - btl_pending_battle:set_player_ids - ( - [PlayerID|btl_pending_battle:get_player_ids(S1PendingBattle)], - S1PendingBattle - ), + btl_pending_battle:push_player_id(PlayerID, S1PendingBattle), S3PendingBattle = - btl_pending_battle:set_player_summary_ixs - ( - [PlayerIX|btl_pending_battle:get_player_summary_ixs(S1PendingBattle)], - S2PendingBattle - ), + btl_pending_battle:push_player_summary_ix(PlayerIX, S2PendingBattle), Update = ataxic:sequence -- cgit v1.2.3-70-g09d2