From c0f1fbc13aafbe699290a7f65abb807a45e0d0d0 Mon Sep 17 00:00:00 2001 From: 0TheSpy <5511c282@opayq.com> Date: Mon, 14 Nov 2022 00:20:35 +0300 Subject: [PATCH] Update Skinchanger.cpp --- SpyCustom/Skinchanger.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SpyCustom/Skinchanger.cpp b/SpyCustom/Skinchanger.cpp index fa92535..867b1ef 100644 --- a/SpyCustom/Skinchanger.cpp +++ b/SpyCustom/Skinchanger.cpp @@ -371,7 +371,9 @@ bool Changer() if (g_Options.weapons.value->arr[0].active && g_Options.weapons.value->arr[0].modelactive) { - static int lastmdlindex = -1; + //May cause crash idk why + /* + static int lastmdlindex = -1; int curmdlindex = pViewModel->GetModelIndex(); if (lastmdlindex != curmdlindex) { @@ -388,6 +390,7 @@ bool Changer() } } + */ if (view_model_weapon && is_knife(view_model_weapon->GetItemDefinitionIndex())) {