Make Chips, Mult and Score unsigned and protect against overflow (#212)
--------- Co-authored-by: MathisMartin31 <mathis.martin31@gmail.com>
This commit is contained in:
@@ -745,7 +745,7 @@ static JokerEffect shoot_the_moon_joker_effect(Joker *joker, Card *scored_card,
|
||||
|
||||
if (scored_card->rank == QUEEN)
|
||||
{
|
||||
effect.mult += 13;
|
||||
effect.mult = u32_protected_add(effect.mult, 13);
|
||||
}
|
||||
|
||||
return effect;
|
||||
|
||||
Reference in New Issue
Block a user