Fix #13905: Fix walking off end of array when saving (#13913)

Mistake made in refactor
This commit is contained in:
Duncan 2021-01-22 22:45:00 +00:00 committed by GitHub
parent 73275b311b
commit fb274f55d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -974,7 +974,7 @@ void S6Exporter::RebuildEntityLinks()
}
else
{
_s6.sprite_lists_head[EnumValue(list)] = entity.unknown.sprite_index;
_s6.sprite_lists_head[EnumValue(list) >> 1] = entity.unknown.sprite_index;
}
_s6.sprites[entity.unknown.sprite_index].unknown.next = SPRITE_INDEX_NULL;
previous = entity.unknown.sprite_index;