From 5d96c43c65f4e26dbcbbcaffeb265a6353a245b4 Mon Sep 17 00:00:00 2001 From: mittorn Date: Tue, 5 Apr 2016 15:39:01 +0000 Subject: [PATCH] Fix crash --- cl_dll/view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_dll/view.cpp b/cl_dll/view.cpp index d547496e..2af0f8c9 100644 --- a/cl_dll/view.cpp +++ b/cl_dll/view.cpp @@ -1333,7 +1333,7 @@ int V_FindViewModelByWeaponModel(int weaponindex) int len = strlen( weaponModel->name ); int i = 0; - while ( modelmap[i] != NULL ) + while ( modelmap[i][0] != NULL ) { if ( !strnicmp( weaponModel->name, modelmap[i][0], len ) ) {