From 5957f50e33fb8e849c44025472f4147a08d52075 Mon Sep 17 00:00:00 2001 From: Bukz Date: Fri, 15 Feb 2013 05:32:53 +0000 Subject: [PATCH] setskin() fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7206 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/vertmodel.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/vertmodel.h b/source/src/vertmodel.h index 5869a9b2..f29bb3c2 100644 --- a/source/src/vertmodel.h +++ b/source/src/vertmodel.h @@ -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; }