setskin() fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7206 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2013-02-15 05:32:53 +00:00
parent 0c6c833a12
commit 5957f50e33
+2 -1
View File
@@ -1233,7 +1233,8 @@ struct vertmodel : model
void setskin(int tex = 0)
{
if(parts.length()!=1 || parts[0]->meshes.length()!=1) return;
//if(parts.length()!=1 || parts[0]->meshes.length()!=1) return;
if(parts.length() < 1 || parts[0]->meshes.length() < 1) return;
mesh &m = *parts[0]->meshes[0];
m.tex = tex;
}