Fix 2 ValGrind warnings.

svn-id: r44499
This commit is contained in:
Robert Špalek 2009-09-30 21:07:04 +00:00
parent 94572773d0
commit 5ad13a3dff

View File

@ -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);