Ignore:
Timestamp:
Nov 16, 2018, 11:09:57 PM (6 years ago)
Author:
alloc
Message:

*Error fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/7dtd-server-fixes/src/PersistentData/Player.cs

    r326 r333  
    214214                        using (PooledBinaryReader pbr = MemoryPools.poolBinaryReader.AllocSync (false)) {
    215215                                pbr.SetBaseStream (_pdf.progressionData);
     216                                long posBefore = pbr.BaseStream.Position;
     217                                pbr.BaseStream.Position = 0;
    216218                                Progression p = Progression.Read (pbr, null);
     219                                pbr.BaseStream.Position = posBefore;
    217220                                expToNextLevel = (uint) p.ExpToNextLevel;
    218221                                level = p.Level;
Note: See TracChangeset for help on using the changeset viewer.