diff options
author | Strangerke | 2012-06-15 20:39:03 +0200 |
---|---|---|
committer | Strangerke | 2012-06-15 20:39:03 +0200 |
commit | 1274c02d1d1dc4c0af156e7f769e9155499b67a1 (patch) | |
tree | 6f618074383ab17a28ad2187f570184f75051da0 /engines | |
parent | 39e2f21bae36b71e54a7f1698cab77715f4e7017 (diff) | |
download | scummvm-rg350-1274c02d1d1dc4c0af156e7f769e9155499b67a1.tar.gz scummvm-rg350-1274c02d1d1dc4c0af156e7f769e9155499b67a1.tar.bz2 scummvm-rg350-1274c02d1d1dc4c0af156e7f769e9155499b67a1.zip |
MORTEVIELLE: Fix a couple of Valgrind warnings
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mortevielle/mortevielle.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/mortevielle/mortevielle.cpp b/engines/mortevielle/mortevielle.cpp index 8ff7d02c9e..58708f3bcb 100644 --- a/engines/mortevielle/mortevielle.cpp +++ b/engines/mortevielle/mortevielle.cpp @@ -113,8 +113,10 @@ MortevielleEngine::MortevielleEngine(OSystem *system, const ADGameDescription *g _c_zzz = -1; _caff = -1; + _day = 0; memset(_mem, 0, sizeof(_mem)); + _anyone = false; } MortevielleEngine::~MortevielleEngine() { @@ -2483,11 +2485,12 @@ void MortevielleEngine::loadCFIEC() { } _cfiecBufferSize = ((f.size() / 128) + 1) * 128; + int32 fileSize = f.size(); if (!_reloadCFIEC) _cfiecBuffer = (byte *)malloc(sizeof(byte) * _cfiecBufferSize); - for (int i = 0; i < _cfiecBufferSize; ++i) + for (int32 i = 0; i < fileSize; ++i) _cfiecBuffer[i] = f.readByte(); f.close(); |