Skip to content

Commit

Permalink
Another sanity check for landbrush
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Jun 7, 2024
1 parent 14cc8d7 commit 3b0df68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CentrED/UI/Windows/LandBrushWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected override void InternalDraw()
private void Draw(LandBrushTransition transition)
{
var tileId = transition.TileID;
if(TexmapsLoader.Instance.GetValidRefEntry(tileId).Length < 0)
if(tileId > 0x4000 || TexmapsLoader.Instance.GetValidRefEntry(tileId).Length < 0)
{
Console.WriteLine($"No texture found for land brush tile 0x{tileId:X4}");
tileId = 0x0001; //VOID, bright pink texture
Expand Down

0 comments on commit 3b0df68

Please sign in to comment.