summaryrefslogtreecommitdiff
path: root/LibTSforge/TokenStore
diff options
context:
space:
mode:
authorLyssa2025-04-02 10:06:52 +0000
committerLyssa2025-04-02 10:06:52 +0000
commitb8558d8fb2de25a97572ec9d3e33618b8fac3027 (patch)
tree4a6dc0d718918881f8461091974ea3afaf026186 /LibTSforge/TokenStore
parent07f43e261381c8b9229fcf376e310d8f02ccb16d (diff)
downloadTSforge-b8558d8fb2de25a97572ec9d3e33618b8fac3027.zip
basic cleanup
Diffstat (limited to 'LibTSforge/TokenStore')
-rw-r--r--LibTSforge/TokenStore/TokenStoreModern.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/LibTSforge/TokenStore/TokenStoreModern.cs b/LibTSforge/TokenStore/TokenStoreModern.cs
index c3483ff..cfb35d0 100644
--- a/LibTSforge/TokenStore/TokenStoreModern.cs
+++ b/LibTSforge/TokenStore/TokenStoreModern.cs
@@ -25,17 +25,16 @@ namespace LibTSforge.TokenStore
if (TokensFile.Length < BLOCK_SIZE) return;
TokensFile.Seek(0x24, SeekOrigin.Begin);
- uint nextBlock = 0;
+ uint nextBlock;
BinaryReader reader = new BinaryReader(TokensFile);
do
{
- uint curOffset = reader.ReadUInt32();
nextBlock = reader.ReadUInt32();
for (int i = 0; i < ENTRIES_PER_BLOCK; i++)
{
- curOffset = reader.ReadUInt32();
+ uint curOffset = reader.ReadUInt32();
bool populated = reader.ReadUInt32() == 1;
uint contentOffset = reader.ReadUInt32();
uint contentLength = reader.ReadUInt32();