From 48c15e2701252dc040f21d9141e6fde615513881 Mon Sep 17 00:00:00 2001 From: Adam <893184+NotAdam@users.noreply.github.com> Date: Sat, 21 Oct 2023 13:27:22 +1100 Subject: [PATCH] fuck 2: electric boogaloo --- src/Lumina/Excel/ExcelSheetImpl.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Lumina/Excel/ExcelSheetImpl.cs b/src/Lumina/Excel/ExcelSheetImpl.cs index 08b7c27c..2bb5de7e 100644 --- a/src/Lumina/Excel/ExcelSheetImpl.cs +++ b/src/Lumina/Excel/ExcelSheetImpl.cs @@ -152,10 +152,13 @@ internal void GenerateFilePages() /// The if found, null otherwise public ExcelPage? GetPageForRow( uint row ) { - // var data = DataPages.FirstOrDefault( s => s.RowData.ContainsKey( row ) ); - var page = DataPages.FirstOrDefault( s => row >= s.StartId && row < s.StartId + s.RowCount ); + if( page?.RowData.ContainsKey( row ) == false ) + { + return null; + } + return page; }