summaryrefslogtreecommitdiff
path: root/LibTSforge/TokenStore/TokenStoreModern.cs
diff options
context:
space:
mode:
Diffstat (limited to 'LibTSforge/TokenStore/TokenStoreModern.cs')
-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();