From 41f640cfe53107f78f8af43cd21dd1a148e6be3d Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Tue, 14 Sep 2010 11:33:28 +0200 Subject: [PATCH] clarify error message --- src/converter/collada.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/converter/collada.cpp b/src/converter/collada.cpp index 8a357dab..e27118fe 100644 --- a/src/converter/collada.cpp +++ b/src/converter/collada.cpp @@ -445,7 +445,7 @@ void loadGeometry(std::string prefixName, Transform transform, std::ostream &os, domUint idx = indices.get(l+offset); if (idx >= count) { SLog(EWarn, "Encountered the invalid polygon index %i " - "(must be in [0, " SIZE_T_FMT "]) -- ignoring polygon!", (domInt) idx, count); + "(must be in [0, " SIZE_T_FMT "]) -- ignoring polygon!", (domInt) idx, count-1); invalid = true; break; } @@ -506,7 +506,7 @@ void loadGeometry(std::string prefixName, Transform transform, std::ostream &os, domUint idx = indexArray.get(l*data->nSources+offset); if (idx >= count) { SLog(EWarn, "Encountered the invalid polygon index %i " - "(must be in [0, " SIZE_T_FMT "]) -- ignoring polygon!", (domInt) idx, count); + "(must be in [0, " SIZE_T_FMT "]) -- ignoring polygon!", (domInt) idx, count-1); invalid = true; break; }