From e9adc58583e0ad9e6785d05f2f4281d7704ab171 Mon Sep 17 00:00:00 2001 From: CactiChameleon9 <51231053+CactiChameleon9@users.noreply.github.com> Date: Sat, 16 Jul 2022 22:58:24 +0100 Subject: [PATCH] Fix a lost precision warning --- UI/Dice.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/Dice.gd b/UI/Dice.gd index 3ff0b7b..4510659 100644 --- a/UI/Dice.gd +++ b/UI/Dice.gd @@ -13,4 +13,4 @@ func _set_dice_value(new_value): func _ready(): randomize() - self.dice_value = round(rand_range(0.5, 6.49999999)) + self.dice_value = int(round(rand_range(0.5, 6.49999999)))