diff --git a/source/src/rendermodel.cpp b/source/src/rendermodel.cpp index 23daae5e..8a822270 100644 --- a/source/src/rendermodel.cpp +++ b/source/src/rendermodel.cpp @@ -356,7 +356,7 @@ void rendermodel(const char *mdl, int anim, int tex, float rad, const vec &o, fl if(a) for(int i = 0; a[i].tag; i++) { - if(a[i].name) a[i].m = loadmodel(a[i].name); + a[i].m = a[i].name ? loadmodel(a[i].name) : NULL; //if(a[i].m && a[i].m->type()!=m->type()) a[i].m = NULL; }