sizeof(dataFileHeader) returns 24 on some targets
|Reported by:||anotherguest||Owned by:||eriktorbjorn|
|Cc:||Game:||Beneath a Steel Sky|
In Control.cpp, Disk.cpp,Intro.Cpp,Logic.cpp, Mouse.cpp, Screen.cpp,Sound.cpp & Text.cpp sizeof (dataFileHeader) is often used to calculate the offset of data. The data of the struct is 22 bytes, and corresponds to the actual datasize within the datafiles of Sky. But on some targets (in my case Symbian Gcc ARM compiler), the struct size is rounded up to the closest 32 bit long word and this size is 24 bytes, and stops Sky from working.
Suggested fix: Change the sizeof(dataFileHeader) to the constant of 22, as this is the size of the data in the datafiles.
Ticket imported from: #1002534. Ticket imported from: bugs/1700.