diff --git a/Source/Core/Data/TexturePatch.cs b/Source/Core/Data/TexturePatch.cs index 7820cc2895b7fe718c15c685b631dafbbbc7611c..ffda23e14dc2405238a9549ed17b6da5345eac09 100755 --- a/Source/Core/Data/TexturePatch.cs +++ b/Source/Core/Data/TexturePatch.cs @@ -65,7 +65,7 @@ namespace CodeImp.DoomBuilder.Data // Initialize this.LumpName = lumpname; this.X = x; - this.Y = y; + this.Y = y < 0 ? 0 : y; this.FlipX = false; this.FlipY = false; this.Rotate = 0;