Fixed incorrect write of obj_set

This commit is contained in:
korenkonder
2023-11-01 12:34:01 +03:00
parent b4a5ddb616
commit fbf8b31cee
7 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -188,7 +188,7 @@ void dds::read(const wchar_t* path) {
goto End;
DDS_HEADER dds_h = {};
if (s.read(dds_h) != sizeof(DDS_HEADER))
if (s.read_data(dds_h) != sizeof(DDS_HEADER))
goto End;
if (!((dds_h.flags & DDSD_CAPS) && (dds_h.flags & DDSD_HEIGHT)
@@ -362,7 +362,7 @@ void dds::write(const wchar_t* path) {
s.open(path_dds, L"wb");
if (s.check_not_null()) {
s.write_uint32_t_reverse_endianness(DDS_MAGIC, true);
s.write(dds_h);
s.write_data(dds_h);
uint32_t index = 0;
do