From 5d03313e36bc8f999c606172e50f3f184c1b4b38 Mon Sep 17 00:00:00 2001 From: Rak Laptudirm Date: Fri, 27 Dec 2024 12:03:27 +0530 Subject: [PATCH] chore: fix the broken next function for SetTypes --- games/src/interface/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/games/src/interface/mod.rs b/games/src/interface/mod.rs index db1e1a5..b3fd957 100644 --- a/games/src/interface/mod.rs +++ b/games/src/interface/mod.rs @@ -601,8 +601,8 @@ macro_rules! set_type { }; if !$name::is_empty(*self) { - let copy = *self; - *self = copy & (copy - Self($typ::from(1u8))); + let copy = $typ::from(*self); + self.0 = copy & (copy - $typ::from(1u8)); } lsb