aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2013-04-10 09:01:35 +0200
committerStrangerke2013-04-10 09:01:35 +0200
commitf7771844f12ebc7efd57cd5d967b3119c80d33fb (patch)
treeeab45dd39cc83f2d11af9947e6dcd4763797cd03
parent9f4a35b011971949cfe67941f2725effb0c85baf (diff)
downloadscummvm-rg350-f7771844f12ebc7efd57cd5d967b3119c80d33fb.tar.gz
scummvm-rg350-f7771844f12ebc7efd57cd5d967b3119c80d33fb.tar.bz2
scummvm-rg350-f7771844f12ebc7efd57cd5d967b3119c80d33fb.zip
HOPKINS: Remove useless object reference in DialogsManager
-rw-r--r--engines/hopkins/dialogs.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hopkins/dialogs.cpp b/engines/hopkins/dialogs.cpp
index df8706ae3f..702caf37af 100644
--- a/engines/hopkins/dialogs.cpp
+++ b/engines/hopkins/dialogs.cpp
@@ -66,15 +66,15 @@ void DialogsManager::loadIcons() {
}
void DialogsManager::drawInvent(Common::Point oldBorder, int oldBorderSpriteIndex, Common::Point newBorder, int newBorderSpriteIndex) {
- if (!_vm->_dialogsManager->_inventDisplayedFl)
+ if (!_inventDisplayedFl)
return;
_vm->_graphicsManager->restoreSurfaceRect(_vm->_graphicsManager->_frontBuffer, _inventWin1, _inventX, _inventY, _inventWidth, _inventHeight);
if (oldBorder.x && oldBorder.y)
- _vm->_graphicsManager->drawVesaSprite(_vm->_graphicsManager->_frontBuffer, _vm->_dialogsManager->_inventBuf2, oldBorder.x + 300, oldBorder.y + 300, oldBorderSpriteIndex + 1);
+ _vm->_graphicsManager->drawVesaSprite(_vm->_graphicsManager->_frontBuffer, _inventBuf2, oldBorder.x + 300, oldBorder.y + 300, oldBorderSpriteIndex + 1);
if (newBorder.x && newBorder.y)
- _vm->_graphicsManager->drawVesaSprite(_vm->_graphicsManager->_frontBuffer, _vm->_dialogsManager->_inventBuf2, newBorder.x + 300, newBorder.y + 300, newBorderSpriteIndex);
- _vm->_graphicsManager->addDirtyRect(_vm->_dialogsManager->_inventX, _vm->_dialogsManager->_inventY, _vm->_dialogsManager->_inventX + _vm->_dialogsManager->_inventWidth, _vm->_dialogsManager->_inventY + _vm->_dialogsManager->_inventHeight);
+ _vm->_graphicsManager->drawVesaSprite(_vm->_graphicsManager->_frontBuffer, _inventBuf2, newBorder.x + 300, newBorder.y + 300, newBorderSpriteIndex);
+ _vm->_graphicsManager->addDirtyRect(_inventX, _inventY, _inventX + _inventWidth, _inventY + _inventHeight);
}
void DialogsManager::showOptionsDialog() {