aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2015-05-15 09:55:35 +0200
committerStrangerke2015-05-15 09:55:35 +0200
commit8d2ec6f9fa45fc17d517db36fa688b12eb809681 (patch)
tree3fed612ad60c4b5f000c934c0a72f0df69889c68 /engines
parentd3f1a76cc8336983d8bb36538fb8e6c520051935 (diff)
downloadscummvm-rg350-8d2ec6f9fa45fc17d517db36fa688b12eb809681.tar.gz
scummvm-rg350-8d2ec6f9fa45fc17d517db36fa688b12eb809681.tar.bz2
scummvm-rg350-8d2ec6f9fa45fc17d517db36fa688b12eb809681.zip
SHERLOCK: Remove a couple of unused variables in inventory
Diffstat (limited to 'engines')
-rw-r--r--engines/sherlock/inventory.cpp5
-rw-r--r--engines/sherlock/inventory.h2
2 files changed, 0 insertions, 7 deletions
diff --git a/engines/sherlock/inventory.cpp b/engines/sherlock/inventory.cpp
index d8c0104e6c..1997807d15 100644
--- a/engines/sherlock/inventory.cpp
+++ b/engines/sherlock/inventory.cpp
@@ -49,8 +49,6 @@ Inventory::Inventory(SherlockEngine *vm) : Common::Array<InventoryItem>(), _vm(v
_invGraphicsLoaded = false;
_invIndex = 0;
_holdings = 0;
- _oldFlag = 0;
- _invFlag = 0;
_invMode = INVMODE_EXIT;
}
@@ -215,7 +213,6 @@ void Inventory::drawInventory(int flag) {
UserInterface &ui = *_vm->_ui;
int tempFlag = flag;
- _oldFlag = 7;
loadInv();
if (flag == 128) {
@@ -257,10 +254,8 @@ void Inventory::drawInventory(int flag) {
if (flag) {
ui._oldKey = INVENTORY_COMMANDS[flag];
- _oldFlag = flag;
} else {
ui._oldKey = -1;
- _invFlag = 6;
}
invCommands(0);
diff --git a/engines/sherlock/inventory.h b/engines/sherlock/inventory.h
index f4cea7729a..eb5aebdd7c 100644
--- a/engines/sherlock/inventory.h
+++ b/engines/sherlock/inventory.h
@@ -75,8 +75,6 @@ public:
int _holdings; // Used to hold number of visible items in active inventory.
// Since Inventory array also contains some special hidden items
void freeGraphics();
- int _oldFlag;
- int _invFlag;
public:
Inventory(SherlockEngine *vm);
~Inventory();