diff --git a/main/source/cl_dll/view.cpp b/main/source/cl_dll/view.cpp index 5c959dd1..fea5b35c 100644 --- a/main/source/cl_dll/view.cpp +++ b/main/source/cl_dll/view.cpp @@ -1801,6 +1801,7 @@ int V_FindViewModelByWeaponModel(int weaponindex, int inUser3, int inUser4) if ( !SafeStrcmp( weaponModel->name, theCurrentPWeapon) ) { theViewModelIndex = gEngfuncs.pEventAPI->EV_FindModelIndex( theCurrentVWeapon ); + return theViewModelIndex; } i++; } @@ -1815,6 +1816,7 @@ int V_FindViewModelByWeaponModel(int weaponindex, int inUser3, int inUser4) if ( !SafeStrcmp( weaponModel->name, theCurrentPWeapon) ) { theViewModelIndex = gEngfuncs.pEventAPI->EV_FindModelIndex( theCurrentVWeapon ); + return theViewModelIndex; } i++; }