mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
- fixed: The HashTags function considered sector and line #0 invalid.
This commit is contained in:
parent
45b006252a
commit
920a4fbf45
1 changed files with 2 additions and 2 deletions
|
@ -163,7 +163,7 @@ void FTagManager::HashTags()
|
||||||
// Proceed from last to first so that lower targets appear first
|
// Proceed from last to first so that lower targets appear first
|
||||||
for (int i = allTags.Size() - 1; i >= 0; i--)
|
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;
|
int hash = ((unsigned int)allTags[i].tag) % FTagManager::TAG_HASH_SIZE;
|
||||||
allTags[i].nexttag = TagHashFirst[hash];
|
allTags[i].nexttag = TagHashFirst[hash];
|
||||||
|
@ -173,7 +173,7 @@ void FTagManager::HashTags()
|
||||||
|
|
||||||
for (int i = allIDs.Size() - 1; i >= 0; i--)
|
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;
|
int hash = ((unsigned int)allIDs[i].tag) % FTagManager::TAG_HASH_SIZE;
|
||||||
allIDs[i].nexttag = IDHashFirst[hash];
|
allIDs[i].nexttag = IDHashFirst[hash];
|
||||||
|
|
Loading…
Reference in a new issue