about summary refs log tree commit diff
path: root/src/engine
diff options
context:
space:
mode:
authorKaffeine <akulichalexander@gmail.com>2010-09-22 20:46:51 +0600
committeroy <Tom_Adams@web.de>2010-09-24 13:03:05 +0200
commit21d14b9704f9ede9877d7b7861a897f55bf70fdc (patch)
treef979b73e0cdaea4a082c84cf2d764fb4d2144845 /src/engine
parent368462158903c5708b19f107d2fbe4a8b097ef08 (diff)
downloadzcatch-21d14b9704f9ede9877d7b7861a897f55bf70fdc.tar.gz
zcatch-21d14b9704f9ede9877d7b7861a897f55bf70fdc.zip
CHuffman::BubbleSort: speedup.
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/shared/huffman.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/engine/shared/huffman.cpp b/src/engine/shared/huffman.cpp
index bb7aeaa8..dfa8923a 100644
--- a/src/engine/shared/huffman.cpp
+++ b/src/engine/shared/huffman.cpp
@@ -40,6 +40,7 @@ static void BubbleSort(CHuffmanConstructNode **ppList, int Size)
 				Changed = 1;
 			}
 		}
+		Size--;
 	}
 }