From 920a4fbf4595ab4f677c19aeb90464b8bdf118ce Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 23 Apr 2015 21:27:36 +0200 Subject: [PATCH] - fixed: The HashTags function considered sector and line #0 invalid. --- src/p_tags.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_tags.cpp b/src/p_tags.cpp index 7e958dcca6..d5c03ec9dc 100644 --- a/src/p_tags.cpp +++ b/src/p_tags.cpp @@ -163,7 +163,7 @@ void FTagManager::HashTags() // Proceed from last to first so that lower targets appear first for (int i = allTags.Size() - 1; i >= 0; i--) { - if (allTags[i].target > 0) // only link valid entries + if (allTags[i].target >= 0) // only link valid entries { int hash = ((unsigned int)allTags[i].tag) % FTagManager::TAG_HASH_SIZE; allTags[i].nexttag = TagHashFirst[hash]; @@ -173,7 +173,7 @@ void FTagManager::HashTags() for (int i = allIDs.Size() - 1; i >= 0; i--) { - if (allIDs[i].target > 0) // only link valid entries + if (allIDs[i].target >= 0) // only link valid entries { int hash = ((unsigned int)allIDs[i].tag) % FTagManager::TAG_HASH_SIZE; allIDs[i].nexttag = IDHashFirst[hash];