mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
+4
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user