diff --git a/LibBSP/Source/Structs/BSP/Texture.cs b/LibBSP/Source/Structs/BSP/Texture.cs index dfb1852..7aa0687 100644 --- a/LibBSP/Source/Structs/BSP/Texture.cs +++ b/LibBSP/Source/Structs/BSP/Texture.cs @@ -46,7 +46,6 @@ namespace LibBSP { mask = "ignore"; flags = 0; contents = 0; - texAxes = new TextureInfo(); switch (type) { case MapType.Quake: case MapType.Nightfire: { diff --git a/LibBSP/Source/Structs/BSP/TextureInfo.cs b/LibBSP/Source/Structs/BSP/TextureInfo.cs index abc592b..3b4692b 100644 --- a/LibBSP/Source/Structs/BSP/TextureInfo.cs +++ b/LibBSP/Source/Structs/BSP/TextureInfo.cs @@ -18,7 +18,7 @@ namespace LibBSP { /// Some BSP formats lack this lump (or the information is contained in a /// different lump) so their cases will be left out. /// - public struct TextureInfo { + public class TextureInfo { public const int S = 0; public const int T = 1; @@ -46,7 +46,7 @@ namespace LibBSP { /// The map type. /// was null. /// This structure is not implemented for the given maptype. - public TextureInfo(byte[] data, MapType type) : this() { + public TextureInfo(byte[] data, MapType type) { if (data == null) { throw new ArgumentNullException(); } @@ -102,7 +102,7 @@ namespace LibBSP { /// The texture shift on the T axis. /// The flags for this . /// Index into the texture list for the texture this uses. - public TextureInfo(Vector3 s, float SShift, Vector3 t, float TShift, int flags, int texture) : this() { + public TextureInfo(Vector3 s, float SShift, Vector3 t, float TShift, int flags, int texture) { axes = new Vector3[2]; axes[S] = s; axes[T] = t;