From ec79dacc3590f395c323e66b2f804ea2929ed429 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 15 Nov 2015 15:02:36 -0800 Subject: [PATCH] Correct weight count display for no weights. This was causing it to always say unknown weights since the +1 on weightCount. --- GPU/GeDisasm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GeDisasm.cpp b/GPU/GeDisasm.cpp index 2e33d664a3..28dfd3864f 100644 --- a/GPU/GeDisasm.cpp +++ b/GPU/GeDisasm.cpp @@ -68,7 +68,7 @@ void GeDescribeVertexType(u32 op, char *buffer, int len) { w += snprintf(w, end - w, "%s positions, ", typeNamesS[pos]); if (typeNames[weight] && w < end) w += snprintf(w, end - w, "%s weights (%d), ", typeNames[weight], weightCount); - else if (weightCount > 0 && w < end) + else if (weightCount > 1 && w < end) w += snprintf(w, end - w, "unknown weights (%d), ", weightCount); if (morphCount > 0 && w < end) w += snprintf(w, end - w, "%d morphs, ", morphCount);