diff options
| author | Steven Fuller <relnev@icculus.org> | 2017-05-05 12:00:00 +0200 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 03:51:51 +0200 |
| commit | 5673c1665a2c6d7fdaf1a20d554bb135a20c7bc8 (patch) | |
| tree | ccf08c484f14d7c5e95fa7f645db2014d61ebb78 /src/win95/shpchunk.cpp | |
| parent | 0de664d0a886bcda45a0cd05551b6896c5c46ed0 (diff) | |
Import icculus.org release (2017-05-05)
Diffstat (limited to 'src/win95/shpchunk.cpp')
| -rw-r--r-- | src/win95/shpchunk.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/win95/shpchunk.cpp b/src/win95/shpchunk.cpp index 779045b..341e5e7 100644 --- a/src/win95/shpchunk.cpp +++ b/src/win95/shpchunk.cpp @@ -1,5 +1,5 @@ #include <math.h> - +#include "unaligned.h" #include "chunk.hpp" #include "chnktype.hpp" #include "shpchunk.hpp" @@ -1610,9 +1610,9 @@ Shape_External_Filename_Chunk::Shape_External_Filename_Chunk(Chunk_With_Children Shape_External_Filename_Chunk::Shape_External_Filename_Chunk (Chunk_With_Children * parent, const char *fdata, size_t /*fsize*/) : Chunk (parent, "SHPEXTFN") { - rescale = *((double *) fdata); + rescale = *((unaligned_f64 *) fdata); fdata += 8; - version_no = *((int *) fdata); + version_no = *((unaligned_s32 *) fdata); fdata += 4; file_name = new char [strlen(fdata)+1]; strcpy (file_name, fdata); |
