aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/globals.cpp
diff options
context:
space:
mode:
authorStrangerke2012-06-15 08:23:06 +0200
committerStrangerke2012-06-15 08:23:06 +0200
commit7c605c5f69e350e87801912babdf5b3cd65024d3 (patch)
treeefdc1cd6c60e259302c8e780f09233939388f19e /engines/tony/globals.cpp
parent7951881d46aedb230870d843a3f7278368556657 (diff)
downloadscummvm-rg350-7c605c5f69e350e87801912babdf5b3cd65024d3.tar.gz
scummvm-rg350-7c605c5f69e350e87801912babdf5b3cd65024d3.tar.bz2
scummvm-rg350-7c605c5f69e350e87801912babdf5b3cd65024d3.zip
TONY: Silent more CppCheck warnings, remove an unused global
Diffstat (limited to 'engines/tony/globals.cpp')
-rw-r--r--engines/tony/globals.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/tony/globals.cpp b/engines/tony/globals.cpp
index e3d36db11b..45ab5f8722 100644
--- a/engines/tony/globals.cpp
+++ b/engines/tony/globals.cpp
@@ -134,8 +134,11 @@ Globals::Globals() {
_nTonyNextTalkType = RMTony::TALK_NORMAL;
_saveTonyLoc = 0;
- for (int i = 0; i < 16; ++i)
+ for (int i = 0; i < 16; ++i) {
Common::fill((byte *)&_character[i], (byte *)&_character[i] + sizeof(CharacterStruct), 0);
+ _isMChar[i] = false;
+ }
+
for (int i = 0; i < 10; ++i)
Common::fill((byte *)&_mCharacter[i], (byte *)&_mCharacter[i] + sizeof(MCharacterStruct), 0);
for (int i = 0; i < 256; ++i)