mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-17 23:44:22 +00:00
Fix 2 ValGrind warnings.
svn-id: r44499
This commit is contained in:
parent
94572773d0
commit
5ad13a3dff
@ -206,8 +206,8 @@ void Game::init() {
|
||||
_vm->_mouse->setCursorType(kNormalCursor);
|
||||
|
||||
_loopStatus = kStatusOrdinary;
|
||||
_objUnderCursor = kOverlayImage;
|
||||
|
||||
_oldObjUnderCursor = _objUnderCursor = kOverlayImage;
|
||||
|
||||
// Set the inventory to empty initially
|
||||
memset(_inventory, kNoItem, kInventorySlots * sizeof(int));
|
||||
|
||||
@ -1139,6 +1139,7 @@ void Game::loadRoom(int roomNum) {
|
||||
}
|
||||
|
||||
Sprite *ov = new Sprite(wlk, kScreenWidth, kScreenHeight, 0, 0, false);
|
||||
delete[] wlk;
|
||||
|
||||
Animation *map = _vm->_anims->addAnimation(kWalkingMapOverlay, 255, false);
|
||||
map->addFrame(ov);
|
||||
|
Loading…
x
Reference in New Issue
Block a user