mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Add range check to index redrawing.
This commit is contained in:
parent
1d935def58
commit
c3a3a2cd35
1 changed files with 6 additions and 1 deletions
|
|
@ -308,7 +308,12 @@ public sealed unsafe partial class ObjectReloader : IDisposable
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RedrawObject( int tableIndex, RedrawType settings )
|
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 )
|
public void RedrawObject( string name, RedrawType settings )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue