Skip to content

Commit

Permalink
NES: HD Packs - Fixed HD pack builder not recording sprites correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
SourMesen committed Jun 30, 2023
1 parent a3aedd2 commit bc02c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/NES/HdPacks/HdBuilderPpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class HdBuilderPpu final : public NesPpu<HdBuilderPpu>

bool hasBgSprite = false;
if(_lastSprite && _mask.SpritesEnabled) {
uint8_t spriteIndex = (uint8_t)((_lastSprite - _spriteTiles) / sizeof(NesSpriteInfo));
uint8_t spriteIndex = (uint8_t)(_lastSprite - _spriteTiles);
NesSpriteInfoEx& spriteInfoEx = _exSpriteInfo[spriteIndex];

if(backgroundColor == 0) {
Expand Down

0 comments on commit bc02c0c

Please sign in to comment.