From 6a3a14ab6be52c54bec50e17004902a246c36d6a Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 4 Nov 2011 20:12:23 +0100 Subject: 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. --- engines/kyra/scene_lok.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/kyra/scene_lok.cpp') 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); -- cgit v1.2.3