aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/inventory.cpp
diff options
context:
space:
mode:
authorsirlemonhead2015-05-18 18:20:54 +0100
committersirlemonhead2015-05-18 18:23:47 +0100
commitda9333a924d945c3bd59eb1f8d3dd17d86b5d572 (patch)
tree74f9eb1a0a3817113773f121f223bb548d4a056b /engines/sherlock/inventory.cpp
parent5e351b6bf3988b33a6af952331039083c3b2aff8 (diff)
downloadscummvm-rg350-da9333a924d945c3bd59eb1f8d3dd17d86b5d572.tar.gz
scummvm-rg350-da9333a924d945c3bd59eb1f8d3dd17d86b5d572.tar.bz2
scummvm-rg350-da9333a924d945c3bd59eb1f8d3dd17d86b5d572.zip
SHERLOCK: Fix code formatting issues and comment spelling mistakes
Diffstat (limited to 'engines/sherlock/inventory.cpp')
-rw-r--r--engines/sherlock/inventory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/inventory.cpp b/engines/sherlock/inventory.cpp
index 8da83aa5da..5b548bb9e3 100644
--- a/engines/sherlock/inventory.cpp
+++ b/engines/sherlock/inventory.cpp
@@ -128,7 +128,7 @@ void Inventory::loadGraphics() {
/**
* Searches through the list of names that correspond to the inventory items
- * and returns the numer that matches the passed name
+ * and returns the number that matches the passed name
*/
int Inventory::findInv(const Common::String &name) {
for (int idx = 0; idx < (int)_names.size(); ++idx) {
@@ -150,7 +150,7 @@ void Inventory::putInv(int slamIt) {
UserInterface &ui = *_vm->_ui;
// If an inventory item has disappeared (due to using it or giving it),
- // a blank space slot may haave appeared. If so, adjust the inventory
+ // a blank space slot may have appeared. If so, adjust the inventory
if (_invIndex > 0 && _invIndex > (_holdings - 6)) {
--_invIndex;
freeGraphics();