From 80b549574129ba395d8ffc4afa7db7a2ba731880 Mon Sep 17 00:00:00 2001 From: clayamore Date: Sun, 24 Mar 2024 23:01:26 +0100 Subject: [PATCH] fixed bug with matchmaking weapon level check --- src/vm/vm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm/vm.rs b/src/vm/vm.rs index 4951524..6ae7e87 100644 --- a/src/vm/vm.rs +++ b/src/vm/vm.rs @@ -209,7 +209,7 @@ pub mod vm { match storage_weapon_res { Some(weapon_param) => { // Check if weapon is somber - let is_somber = weapon_param.data.reinforceTypeId % 2200 == 0; + let is_somber = weapon_param.data.reinforceTypeId != 0 && weapon_param.data.reinforceTypeId % 2200 == 0; // Extract weapon level based on wether weapon is somber or not let weapon_level = if is_somber{