about summary refs log tree commit diff
diff options
context:
space:
mode:
-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--;
 	}
 }