diff options
author | Strangerke | 2013-11-01 14:15:19 +0100 |
---|---|---|
committer | Strangerke | 2013-11-01 14:15:19 +0100 |
commit | 79ecd017e24515e5d9a77e32110a932c7d04b582 (patch) | |
tree | c286decefca1fc3b583f6c69598d5d61f20bb69e /engines/hugo/intro.cpp | |
parent | f1abc0c302a8576415086626f6805acfe997459d (diff) | |
download | scummvm-rg350-79ecd017e24515e5d9a77e32110a932c7d04b582.tar.gz scummvm-rg350-79ecd017e24515e5d9a77e32110a932c7d04b582.tar.bz2 scummvm-rg350-79ecd017e24515e5d9a77e32110a932c7d04b582.zip |
HUFO: Fix CID 1002880, 1002881. Use nullptr where possible instead of 0
Diffstat (limited to 'engines/hugo/intro.cpp')
-rw-r--r-- | engines/hugo/intro.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/hugo/intro.cpp b/engines/hugo/intro.cpp index 6f314c8774..5db6c39078 100644 --- a/engines/hugo/intro.cpp +++ b/engines/hugo/intro.cpp @@ -39,9 +39,10 @@ namespace Hugo { -IntroHandler::IntroHandler(HugoEngine *vm) : _vm(vm), _introX(0), _introY(0) { +IntroHandler::IntroHandler(HugoEngine *vm) : _vm(vm) { _introXSize = 0; _introTicks = 0; + _introX = _introY = nullptr; } IntroHandler::~IntroHandler() { @@ -74,6 +75,7 @@ void IntroHandler::loadIntroData(Common::SeekableReadStream &in) { void IntroHandler::freeIntroData() { free(_introX); free(_introY); + _introX = _introY = nullptr; } intro_v1d::intro_v1d(HugoEngine *vm) : IntroHandler(vm) { |