daily update on 20240427 by nitload youmu
This commit is contained in:
@@ -32,7 +32,7 @@ using StgSharp.Data.FileIO;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection.Metadata.Ecma335;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Data
|
||||
@@ -52,10 +52,18 @@ namespace StgSharp.Data
|
||||
public SSDSegment FindSegment(int id)
|
||||
{
|
||||
SSDSegment s = segments[id];
|
||||
if (s.)
|
||||
if (s.ID != id)
|
||||
{
|
||||
|
||||
foreach (var item in segments)
|
||||
{
|
||||
if (item.ID == id)
|
||||
{
|
||||
s = item;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user