From bba384fba1a37ec6baa6772a723f07c9966dd0b8 Mon Sep 17 00:00:00 2001 From: driAn Date: Tue, 14 Oct 2008 20:43:43 +0000 Subject: [PATCH] fxi: proper modelattach construction git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3016 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/rendermodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }