Declared a local variable that was missing. Project did not compile in VS 2005. I wonder how this could ever compile in previous versions ...

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@767 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2007-03-10 22:46:31 +00:00
parent 3f37673034
commit 073b8d0af3
+4 -1
View File
@@ -129,11 +129,14 @@ void CQuantizer::ReduceTree (UINT nColorBits, UINT* pLeafCount,
//
// Find the deepest level containing at least one reducible node.
//
for (int i=nColorBits - 1; (i>0) && (pReducibleNodes[i] == NULL); i--);
int i = 0;
for (i=nColorBits - 1; (i>0) && (pReducibleNodes[i] == NULL); i--);
//
// Reduce the node most recently added to the list at level i.
//
NODE* pNode = pReducibleNodes[i];
pReducibleNodes[i] = pNode->pNext;