aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/scene_lok.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2011-11-04 20:12:23 +0100
committerJohannes Schickel2011-11-04 20:15:05 +0100
commit6a3a14ab6be52c54bec50e17004902a246c36d6a (patch)
tree178dcaee9c7c190d6b9a13a278b9d3ac75907a9e /engines/kyra/scene_lok.cpp
parent3c4bb827996e28504f9744a501295b17bef7e32d (diff)
downloadscummvm-rg350-6a3a14ab6be52c54bec50e17004902a246c36d6a.tar.gz
scummvm-rg350-6a3a14ab6be52c54bec50e17004902a246c36d6a.tar.bz2
scummvm-rg350-6a3a14ab6be52c54bec50e17004902a246c36d6a.zip
KYRA: Reduce size of KyraEngine_LoK::_entranceMouseCursorTracks.
Also clear the whole array in enterNewScene. This is not needed since the last value is only used when the first four values are set up valid, but it removes an annoying warning in PVS-Studio and makes the code a bit clearer.
Diffstat (limited to 'engines/kyra/scene_lok.cpp')
-rw-r--r--engines/kyra/scene_lok.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/scene_lok.cpp b/engines/kyra/scene_lok.cpp
index 3d6aefca6a..ab1670ea6e 100644
--- a/engines/kyra/scene_lok.cpp
+++ b/engines/kyra/scene_lok.cpp
@@ -131,7 +131,7 @@ void KyraEngine_LoK::enterNewScene(int sceneId, int facing, int unk1, int unk2,
_emc->run(&_scriptClick);
}
- memset(_entranceMouseCursorTracks, 0xFF, sizeof(uint16)*4);
+ memset(_entranceMouseCursorTracks, 0xFF, sizeof(_entranceMouseCursorTracks));
_currentCharacter->sceneId = sceneId;
assert(sceneId < _roomTableSize);