Update Skinchanger.cpp

This commit is contained in:
0TheSpy 2022-11-14 00:20:35 +03:00 committed by GitHub
parent a91866c65e
commit c0f1fbc13a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()))
{