fix(core): use for-loop copy in _make_result to avoid Array.duplicate type loss
This commit is contained in:
@@ -50,7 +50,10 @@ static func _make_result(type: int, primary_rank: int, is_pure: bool, cards1: Ar
|
||||
var r := EvaluatedPlay.new()
|
||||
r.type = type
|
||||
r.primary_rank = primary_rank
|
||||
r.cards = cards1.duplicate(false)
|
||||
var duped: Array[Card] = []
|
||||
for c in cards1:
|
||||
duped.append(c)
|
||||
r.cards = duped
|
||||
r.is_pure_bomb = is_pure
|
||||
return r
|
||||
|
||||
|
||||
Reference in New Issue
Block a user