diff options
author | Strangerke | 2013-07-25 10:24:25 +0200 |
---|---|---|
committer | Strangerke | 2013-07-25 10:24:25 +0200 |
commit | e86ec8bc819b60ef026450630d69b2bdd481b97c (patch) | |
tree | a984eb22ce35a1c79a5fb845675f6a2194143005 /engines/mortevielle/utils.cpp | |
parent | 51f69666562c86708466c85485ef2fe062f9af23 (diff) | |
download | scummvm-rg350-e86ec8bc819b60ef026450630d69b2bdd481b97c.tar.gz scummvm-rg350-e86ec8bc819b60ef026450630d69b2bdd481b97c.tar.bz2 scummvm-rg350-e86ec8bc819b60ef026450630d69b2bdd481b97c.zip |
MORTEVIELLE: Use variable size for _rightFramePict in order to handle the different sizes of the Amiga and Atari versions
Diffstat (limited to 'engines/mortevielle/utils.cpp')
-rw-r--r-- | engines/mortevielle/utils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/mortevielle/utils.cpp b/engines/mortevielle/utils.cpp index 36b2d613ca..f82f6f7837 100644 --- a/engines/mortevielle/utils.cpp +++ b/engines/mortevielle/utils.cpp @@ -2570,7 +2570,9 @@ void MortevielleEngine::adzon() { if (!f.open("dec.mor")) error("Missing file - dec.mor"); - f.read(_rightFramePict, 1664); + free(_rightFramePict); + _rightFramePict = (byte *)malloc(sizeof(byte) * f.size()); + f.read(_rightFramePict, f.size()); f.close(); } |