diff options
| author | tpart <tpart120@proton.me> | 2026-03-05 20:03:28 +0100 |
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2026-03-05 20:03:32 +0100 |
| commit | c5b7f3ba5fb71cbf1ebf50e4ac58f29898586a6b (patch) | |
| tree | 2a123884a197c887b2fefe618525e7fc7a286282 /client | |
| parent | 6c95f430fa3b0c40aed677645d3900e1e9141c89 (diff) | |
| download | hurrycurry-c5b7f3ba5fb71cbf1ebf50e4ac58f29898586a6b.tar hurrycurry-c5b7f3ba5fb71cbf1ebf50e4ac58f29898586a6b.tar.bz2 hurrycurry-c5b7f3ba5fb71cbf1ebf50e4ac58f29898586a6b.tar.zst | |
Fix crash when starting two-handed map with two players
Diffstat (limited to 'client')
| -rw-r--r-- | client/player/controllable_player.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/player/controllable_player.gd b/client/player/controllable_player.gd index cd96a0ff..7c30e915 100644 --- a/client/player/controllable_player.gd +++ b/client/player/controllable_player.gd @@ -272,7 +272,7 @@ func get_best_player_target(interact_target_pos: Vector2, movement_base_2d: Vect var interact_possible := false for i in range(p.hand.size()): - interact_possible = interact_possible or (p.hand[i] != null or hand[i] != null) + interact_possible = interact_possible or (p.hand[i] != null or p.hand[i] != null) if not interact_possible: continue # Interaction not possible if all hand pairs are empty var distance: float = p.position_anim.distance_to(interact_target_pos) |