Add range check to index redrawing.

This commit is contained in:
Ottermandias 2022-06-10 15:32:25 +02:00
parent 1d935def58
commit c3a3a2cd35

View file

@ -308,7 +308,12 @@ public sealed unsafe partial class ObjectReloader : IDisposable
}
public void RedrawObject( int tableIndex, RedrawType settings )
=> RedrawObject( Dalamud.Objects[tableIndex], settings );
{
if( tableIndex >= 0 && tableIndex < Dalamud.Objects.Length )
{
RedrawObject( Dalamud.Objects[ tableIndex ], settings );
}
}
public void RedrawObject( string name, RedrawType settings )
{