Unaligned access in saveload.cpp
|Reported by:||SF/vasyl||Owned by:||SF/strigeus|
Function saveLoadArrayOf contains four instances of
unaligned access (byte pointer "at" is forced to
uint16 and uint32 types). Two of these instances can
be replaced by READ_LE_UINT16/UINT32. Two others
either require more access functions to be added to
scummvm.h or just using byte access instead.
This bug was reported to me by Oleg Zakharov.
This is not the same as the other bug reported
earlier -- that one referred to unaligned access
functions not being implemented in header, now fixed.
Ticket imported from: #480571. Ticket imported from: bugs/37.