diff --git a/src/Common/Game/IW4/IW4_Assets.h b/src/Common/Game/IW4/IW4_Assets.h index 255664ae..aa8243c2 100644 --- a/src/Common/Game/IW4/IW4_Assets.h +++ b/src/Common/Game/IW4/IW4_Assets.h @@ -2084,8 +2084,8 @@ namespace IW4 float y; float w; float h; - char horzAlign; - char vertAlign; + unsigned char horzAlign; + unsigned char vertAlign; }; enum WindowDefStaticFlag : unsigned int diff --git a/src/ObjLoading/Game/IW4/Menu/MenuConverterIW4.cpp b/src/ObjLoading/Game/IW4/Menu/MenuConverterIW4.cpp index 7788d757..24590a30 100644 --- a/src/ObjLoading/Game/IW4/Menu/MenuConverterIW4.cpp +++ b/src/ObjLoading/Game/IW4/Menu/MenuConverterIW4.cpp @@ -34,8 +34,8 @@ namespace IW4 static_cast(rect.y), static_cast(rect.w), static_cast(rect.h), - static_cast(rect.horizontalAlign), - static_cast(rect.verticalAlign) + static_cast(rect.horizontalAlign), + static_cast(rect.verticalAlign) }; } @@ -46,8 +46,8 @@ namespace IW4 static_cast(rectRelativeTo.y + rect.y), static_cast(rect.w), static_cast(rect.h), - static_cast(rect.horizontalAlign), - static_cast(rect.verticalAlign) + static_cast(rect.horizontalAlign), + static_cast(rect.verticalAlign) }; }