Skip to content

Commit

Permalink
fix texture replacement not working after last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Secre-C committed Nov 14, 2023
1 parent 1c9fc7b commit 83e0273
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Emulator/SPD.File.Emulator/Spd/SpdBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ public static SpdTextureEntry CreateTextureEntry(FileSlice texture, int id)
}
else
{
resultDict[id] = new Dictionary<int, SpdSpriteEntry>
resultDict[textureId] = new Dictionary<int, SpdSpriteEntry>
{
{ id, sprite }
};
Expand Down
2 changes: 1 addition & 1 deletion Emulator/SPD.File.Emulator/Spr/SprBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ private static SprSpriteEntry ReadSprite(Stream stream, long spriteOffset)
}
else
{
resultDict[i] = new Dictionary<int, SprSpriteEntry>
resultDict[textureId] = new Dictionary<int, SprSpriteEntry>
{
{ i, sprite }
};
Expand Down

0 comments on commit 83e0273

Please sign in to comment.